Table of contents
No headings in the article.
The OOP language supports the features of normal programming languages as well as some important concepts and terminologies that make them popular among the programming methodology. In Object-Oriented Programming language, all the operations are performed on objects through methods exposed to that object.
Some Important Features of OOP are as follows:
Po-lymorphism: Polymorphism means having many forms, In other words, polymorphism means the ability of a message to be displayed in more than one form. Polymorphism is one of the important features of OOP and it can be of two types.
· Method Overloading
· Method Overriding.
Inheritance: The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important features of Object-Oriented Programming.
Sub Class: The class that inherits properties from another class is called Subclass or Derived Class.
- Super Class:The class whose properties are inherited by a subclass is called Base Class or Superclass.>
Encapsulation: is a process of combining data members and functions in a single unit called class. This is to prevent the access to the data directly, the access to them is provided through the functions of the class. It is one of the popular features of Object-Oriented Programming(OOPs) that helps in data hiding.
Abstraction: Now comes the last and very essential feature of OOP in java which is an abstraction; Hiding the unwanted/unnecessary details while showing out the most essential details. To make a class abstract, you’ll have to use abstract keyword with class’ name or you can declare an abstract method through which the class will be called an Abstract class.