Main Features Of Object Oriented Programming

757 Words2 Pages

Object Oriented Programming - OOP
Overview of Object Oriented Programming Object Oriented Programming is type of programming in which programmers define not only the data type of a data structure, but also the types of operations that can be applied to the data structure. The data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another.

Object-Oriented programming (OOP) entered the software development; it shows how software was developed. Developers could visualize systems as groups of entities and the interaction between those entities, which allowed them to tackle larger, more complicated systems and develop them in less time than ever before. The only problem with OO programming is that it is essentially …show more content…

• Inheritance - Ability to create one object from another.
• Polymorphism - The design of new classes is based on a single class.
• Message Passing - It is the way objects communicate with each other.
• Garbage Collection - Automatic memory management that destroys objects that are no longer in use by the program.

Encapsulation Encapsulation is the packing of data and functions into a single component. The features of encapsulation are supported using classes in most object-oriented programming languages. It allows selective hiding of properties and methods in an object by building an impenetrable wall to protect the code from accidental corruption.

Inheritance Inheritance is an object or class is based on another object or class, using the same implementation specifying implementation to maintain the same behavior. It is a mechanism for code reuse and to allow independent extensions of the original software via public classes and interfaces. The relationships of objects or classes through inheritance give rise to a hierarchy.

Open Document