Object Oriented Concept

There are four basic concept of Object Oriented Programing Language are :
  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Here we explain one by one

                               Abstraction is a process of providing necessary attribute and operation and hiding unrelated attributes and relations. That means we should not provide that attributes and methods which are not useful for the user.
Example: we can take real time example as TV remote, end users only know external functionality of remote not need to know about the internal functionality  

                              Encapsulation is the process of defining all the properties(members or variables) and operation(methods) of object in an entity. Specifying member as a private. Using the private scope we can hide the members as well as methods.

                       The process of defining the new entities by using existing entities, attributes and operations is called Inheritance.
In Java we can define as follows:
                            ---the process of writing a new class by using existing class is call inheritance.
                            ---existing class is called super class or base class and newly created class is called derived class of child class.

                               The operations behaving different in different situations is called the polymorphism.
In case of TV remote entity - the button with red color will do two operations --switch off and switch on.

 We will see all these concept in the next post.


Post a Comment