Recall & Review
beginner
What does Encapsulation mean in OOP?
Encapsulation means bundling data and methods that work on that data into one unit, like a class. It hides the internal details and only exposes what is necessary.
Click to reveal answer
beginner
Define Inheritance in simple terms.
Inheritance lets a new class use properties and methods of an existing class. It’s like a child inheriting traits from a parent.Click to reveal answer
intermediate
What is Polymorphism in OOP?
Polymorphism means one interface can represent different underlying forms (data types). For example, a function can work with different classes through a common interface.
Click to reveal answer
beginner
Explain Abstraction with an example.
Abstraction means showing only the important details and hiding the complex parts. Like driving a car: you use the steering wheel without knowing how the engine works.
Click to reveal answer
beginner
Why are OOP principles useful in programming?
They help organize code better, make it reusable, easier to maintain, and model real-world things clearly.
Click to reveal answer
Which OOP principle hides internal data and only exposes necessary parts?
✗ Incorrect
Encapsulation bundles data and methods and hides internal details from outside access.
What does Inheritance allow in OOP?
✗ Incorrect
Inheritance lets a new class reuse code from an existing class.
Polymorphism allows:
✗ Incorrect
Polymorphism means one interface can represent different underlying forms.
Abstraction is best described as:
✗ Incorrect
Abstraction hides complex details and shows only what is needed.
Which principle helps organize code to model real-world things?
✗ Incorrect
OOP principles help organize code to represent real-world objects clearly.
Explain the four main OOP principles and give a simple example for each.
Think about how a car works to explain abstraction.
You got /4 concepts.
Why is encapsulation important in programming? How does it help keep code safe and organized?
Imagine a capsule that protects medicine inside.
You got /4 concepts.