What are the principles of object-oriented programming(oop)?
Answer Posted / Ram Pravesh Kumar
The four main principles of object-oriented programming (OOP) are encapsulation, inheritance, polymorphism, and abstraction. Encapsulation hides the implementation details from the user; inheritance allows one class to reuse the properties and methods of another; polymorphism enables objects of different types to be treated as if they were of the same type; and abstraction focuses on the essential features of an object, hiding the irrelevant details.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category