OOPS CONCEPT IN JAVA ( DEFINITIONS)

OBJECT ORIENTED PROGRAMMING CONCEPTS(OOPS):

The various object oriented programming concepts are:

  1. Encapsulation
  2. Inheritance
  3. Polymorphism
Encapsulation: It is a process of binding the variables and methods into a single entity.

  • Encapsulation can be achieved with help of a class.
  • Using encapsulation we can improve the maintenance if the application. 
  • Using encapsulation we can implement abstraction (data hiding) which will decide what to hide and what to present that is we can implement security.
  • Using encapsulation we can isolate the members from one class to another class and thereby reduce the code debugging time.
Inheritance: It is the process of acquiring the members from one class to another class.

  • Using Inheritance we can achieve reusuability and thereby reduce the code size and reduce the development time of the application.
Polymorphism: If a single entity shows multiple behaviors or multiple forms, then it is said to be polymorphism.

  • Using polymorphism we can achieve flexibility where single entity can perform different operations according to the requirements.



No comments:

Post a Comment