Tuesday, February 28, 2012

OOP's Concepts

Object Oriented Programming language.
     1. Abstraction
     2. Encapsulation
     3. Inheritance
     4. Polymorphism


Abstraction: 
                     Hiding unnecessary data from the user details is called abstraction.
                     e.g. TV Remote Buttons.


Encapsulation:
                    Writing operations and methods stored in single class this is called Encapsulation.
                     e.g. Medical Capsules.


Inheritance:
                    The new class is existing from old class, i.e. subclass is existing from super class.
                    e.g. Father and Son relationship.


Polymorphism:
                    A single function or single operator has different character in different place.
                    e.g. Person
                          - Person in home act is husband / Son.
                          - In Office acts Employee.
                          - In public Good citizen.
  

1 comment:

Selenium Q and A said...

Good content presentation! Thanks for putting the efforts on gathering useful content and sharing here. You can find more Selenium testing related question and answers in the below forum.

Selenium testing question and answers