1/9
These flashcards cover the essential concepts and definitions related to Object-Oriented Programming (OOP) from the lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is a programming paradigm?
A fundamental style or approach to writing and structuring code.
What does Object-Oriented Programming (OOP) focus on?
It focuses on objects and how they interact to solve programming problems.
What are the four key concepts of Object-Oriented Programming?
Objects and Classes, Abstraction, Inheritance, and Polymorphism.
Define encapsulation.
The hiding of an object's data and methods to protect it from unintended use and corruption.
What is inheritance in OOP?
A mechanism where a class can acquire the properties and functionalities of another class.
What is polymorphism?
The ability to process objects differently based on their data type or class.
What is the difference between static and dynamic polymorphism?
Static polymorphism is resolved at compile time (method overloading), while dynamic polymorphism is resolved at runtime (method overriding).
What does abstraction allow a programmer to do?
It lets a programmer hide all but the relevant information about an object to reduce complexity.
What is the purpose of the 'super' keyword in Java?
It is used to refer to the parent class (superclass) and can call its methods or constructor.
What are the types of inheritance in Java?
Single inheritance, Multilevel inheritance, Hierarchical inheritance, Multiple inheritance (via interfaces), Hybrid inheritance.