Question 1:
What is encapsulation in object-oriented programming?
A. Combining data and functions into a single unit
B. Hiding the internal details of an object and providing an interface to interact with it
C. Defining a blueprint for creating objects
D. Inheriting properties and behaviors from a parent class
Question 2:
What is inheritance in object-oriented programming?
A. Combining data and functions into a single unit
B. Hiding the internal details of an object and providing an interface to interact with it
C. Defining a blueprint for creating objects
D. Inheriting properties and behaviors from a parent class
Question 3:
What is polymorphism in object-oriented programming?
A. Combining data and functions into a single unit
B. Hiding the internal details of an object and providing an interface to interact with it
C. Defining a blueprint for creating objects
D. Having multiple forms of a function or object
Question 4:
What is abstraction in object-oriented programming?
A. Combining data and functions into a single unit
B. Hiding the internal details of an object and providing an interface to interact with it
C. Defining a blueprint for creating objects
D. Inheriting properties and behaviors from a parent class