Home
Search
Create
Library
Topics
Student
Teacher
Admin
Map
Sign in for more features
YourStory
Home
Search
Create
Library
Topics
Student
Teacher
Sign in
Feedback
Contact Us!
Assessment
What is the core principle of Object-Oriented Programming?
Inheritance
Encapsulation
Polymorphism
All of the above
Which of the following best describes encapsulation?
The ability to create a new class based on an existing class.
Hiding the internal state and requiring all interaction to be performed through an object's methods.
The ability for different classes to be treated as instances of the same class through a shared interface.
The practice of encapsulating data within data structures.
What does polymorphism allow in object-oriented programming?
Code to be reused from one class to another.
Objects to be treated as instances of their parent class.
Different methods to be called using the same method name.
Grouping of related classes to form a hierarchy.
Submit