Note: Most of the Article of this blog has taken from another reputated blogs,Websites so Author will not responsible for any Issue.

Concept of OOPS

Concept of OOPS

 

  • Encapsulation
  • Abstraction
  • Inheritance
  • Polymorphism

 

Encapsulation:

 

          The wrapping of data and function together in a single unit is called encapsulation. It tell how to bind data.this is useful to hide the data which is the new feature added to oops for providing security. Encapsulation is used for data hiding.

 

 

Abstraction:

         

          An abstract class is a parent class that allows inheritance but can never be instantiated. Abstract classes contain one or more abstract methods that do not have implementation. Abstract classes allow specialization of inherited classes. Abstract classes and Interfaces both are used either for design reasons or Security reasons.

 

Inheritance :

 

Inheritance is the process of creating new classes, called derived classes, from existing classes.The derived class inherits all the capabilities of the base class, but can add enhancements  and refinements of its own.

 

 

Polymorphism:

 

Polymorphism is the ability of an object (or<br>reference) to assume (be replaced by) or become many different forms of object.<br><br>Example: function overloading, function overriding, virtual functions. Another example can be a plus ?+? sign, used for adding two integers or for using it to concatenate two strings.

          

    +91-9457874019
    +91-522-4102340
    mangeshgangwar@gmail.com
      www.onlineindiamusic.info
Contact Me BloggerTwitter