How OOPS concept is achieved in Java ?



How OOPS concept is achieved in Java

The following stages are the concept of oops achieved in Java,

  • Abstraction
  • Encaptulation
  • Inheritance
  • Polymorphism

Abstraction:

  • It can be defined as the separation of unnecessary details or explanation from system requirements so as to reduce the complexities of understanding requirements.

Encapsulation:

  • It is a mechanism that puts the data and function together. It is the result of hiding implementation details of an object from its user.The object hides its data to de accessed by only those functions which are packed in the class of that object.

Inheritance:

  • It is the relationship between two classes of object such that one of the classes ,the child takes all the relevant features of other class the parent. Inheritance bring about reusability.
 Class and Object

Inheritance

Polymorphism:

  • Polymorphism means having many forms that in a single entity can takes more than one form. Polymorphism is implemented through operator overloading and function overloading.
 Class and Object

Polymorphism


Related Searches to How OOPS concept is achieved in Java ?