Oops:

Oops concepts are the rules which are supposed to be satisfied by a programing language in order to call that programing language as an Object Oriented Programing Language.


1. The 4 oops concepts are

oops concepts in java



    i.Encapsulation
    ii.Polymorphism
    iii.Inheritance
    iv.abstraction

 

 

Encapsulation:

The process of binding the data with corresponding methods
  • The concept of binding the data along with its related and corresponding methods is known as Encapsulation.
  • The concept of restricting the availability of the data only to its related areas and related functions it is known as binding.
  • Because of binding we can restrict the availability of data to the unrelated methods
  • So that unrelated functions cannot access the data 
  • Class is the base for encapsulation

Polymorphism:

Defining multiple methods with same name known as Polymorphism.
  1. Static polymorphism (Compile time polymorphism ):
    The concept of defining multiple methods with same name and with different parameters within the same class is known as static polymorphism.
  2. Dynamic polymorphism (Run time polymorphism ):
    The concept of defining multiple methods with same name and with same signature in super class and sub class known as Dynamic polymorphism.

Inheritance:

Getting the properties from one class object to another class object is known as Inheritance.
  1. Multiple inheritance:
    Getting the properties from one class object to another class object level wise with different priorities.
  2. Multilevel inheritance:Getting the properties from one class object to another class object with same priority.
Abstraction:



You might like:

Instance Of Java

We will help you in learning.Please leave your comments and suggestions in comment section. if you any doubts please use search box provided right side. Search there for answers thank you.
«
Next
Newer Post
»
Previous
This is the last post.

2 comments for Oops

Select Menu