Object oriented programming
Object-oriented programming takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them
Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions" and data rather than logic.
We can say that if there is one of the following property then this is object oriented programming
Object-oriented programming takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them
Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions" and data rather than logic.
We can say that if there is one of the following property then this is object oriented programming
- Inheritance
- polymorphism
- binding
- encapsulation
- hiding
- Abstraction
- The concept of a data class makes it possible to define subclasses of data objects that share some or all of the main class characteristics. Called inheritance, this property of OOP forces a more thorough data analysis, reduces development time, and ensures more accurate coding.
- Since a class defines only the data it needs to be concerned with, when an instance of that class (an object) is run, the code will not be able to accidentally access other program data. This characteristic of data hiding provides greater system security and avoids unintended data corruption.
- The definition of a class is reuseable not only by the program for which it is initially created but also by other object-oriented programs (and, for this reason, can be more easily distributed for use in networks).
- The concept of data classes allows a programmer to create any new data type that is not already defined in the language itself.
In OOPs concept is implemented in our real life systems.
OOPs have following features
1. Object - Instance of class
2. Class - Blue print of Object
3. encapsulation - Protecting our data
4. polymorphism - Different behaviors at diff. instances
5. abstraction - Hiding our irrelevance data
6. inheritance - one property of object is aquring to
another property of object
No comments:
Post a Comment