Can I know about the various principles of OOP?
Asked by parth johri
-
1 Answer
-
Hello Parth,
Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies the software development and maintenance by providing some concepts:
Object
Class
Inheritance
Polymorphism
Abstraction
Encapsulation
Object
Any entity that has state and behavior is known as an object. For example: chair, pen, table, keyboard, bike etc. It can be physical and logical.
Class
Collection of objects is called class. It is a logical entity.
Inheritance
When one object acquires all the properties and behaviours of parent object I.e. known as inheritance. It provides code reusability. It is used to achieve run...more
Related Questions
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else
Sign Up on ShikshaOn Shiksha, get access to
- 64k Colleges
- 966 Exams
- 618k Reviews
- 1450k Answers