Object Oriented Programming Synopsis (OOPS)

Object Oriented programmiming enables programmers define not only the data, but also its associated behaviors (functions) that can be applied to the data.It also enables programmers to create relationships between one object and another. For example, objects can inherit characteristics from other objects.

OOPS facilitates code reuse, team development, eliminate redundant code, easy management of software complexity, etc.,
  1. Data Abstraction::
    Data Abstraction is a concept of data binding. It is used to project the information required for the user and used to hide irrelevant information from the user.
    Classes provides a mechanism to abstract the required attributes
  2. Data Encapsulation: 
    Data Encapsulation is a concept of data hiding. It is used to identify the relevant info and used to group the data together.
    In other words Encapsulation is a technique where data and its associated behaviors (functions) wrapped in a single unit (Class) The data is hidden from outside world. The purpose is to reveal as little as possible about the inner workings of the class. The only way to access these data is through public interfaces provided by the functions.
  3. Polymorphism: 
    Polymorphism is a concept of overloading. Whenever an entity can change its definition based on the argument values passed to the entity then it is said to be Polymorphism; where an entity can be a method or an operator.
    • Method Overloading is an example of Compile Time Polymorphism.
    • Method Overriding is an example of Run Time Polymorphism
  4. Inheritance::
    Inheritance is used to reuse or redefine the existing class def.

1 comments :

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger