C++



 Object Oriented Programming(OOP)

Object Oriented Programming(OOP) aims to implement real world entities.


The following are the characteristics of object oriented programming:
    1. Encapsulation: The wrapping up of data and functions into a single unit known as encapsulation.
    2. Inheritance:  If one class inherits attributes of one or more classes,then this function of inheriting attributes is called inheritance.
    3. Polymorphism: -The ability to take more than one form or function in more than one way is called polymorphism. In other words, function behaving different for different instances.
    4. Data abstraction: Revealing only the needed information to the outside world and hiding the implementation or sensitive information.
    5. Data hiding: When the data is not accessible from outside the class, only functions of the class ca access it. This insulation is called data hiding.  

No comments:

Post a Comment

POLYMORPHISM IN C++

POLYMORPHISM IN C++ C++ achieves polymorphism through: i) Function overloading ii)Operator overloading By the...