Tuesday, February 23, 2010

OOPS Concepts

To standardize the thinking the following characteristics are defined:

• Object
• Class
• Data abstraction
• Data encapsulation
• Inheritance
• Polymorphism
• Dynamic binding
• Message passing


Object Oriented Programming Concepts


• Three of the most basic concepts for object oriented programming are Classes, Objects, and Methods.
• However, there are a few more concepts that you will want to become familiar with. These are Inheritance, Abstraction, Polymorphism, and Encapsulation.


Difference between C & C++


• Procedure oriented Programming (C)
– Programs are divided into smaller sub-programs known as functions
– Here global data is shared by most of the functions
– It is a Top-Down Approach
– Data cannot be secured and available to all the function
– Here, the reusability is not possible, hence redundant code cannot be avoided.
• Object Oriented Programming (C++)
– Programs are divides into objects & classes
– Objects are easily communicated with each other through function.
– It is a Bottom-Up Approach
– Data can be secured and can be available in the class in which it is declared
– Here, we can reuse the existing one using the Inheritance concept

No comments:

Post a Comment