Common concepts of object oriented, C/C++ Programming

Object Oriented Programming Paradigm:

For OOP, Paradigm is a standard set.  The OOP will help to develop software in modules,

which will be integrated later as a full package or software.  The main difference between C and C++ is; C++ is an extension of C with extra features like class, encapsulation, object, polymorphism, inheritance, etc.

Common Concepts of Object Oriented Programming:  Class:

Class is an entity where a set of algorithm can be wrapped inside that class.

Object:

Object is a variable of type class. There can any number of objects of similar class.

Data Abstraction and Encapsulation:

Integrating data within a class is called encapsulation.  The data may be derived through

Primary functions and data type.  The data inside the class is also called as data members.  The members can be accessed only through class.  Class is an abstract data type (ADT).  Abstraction is known as attributes of the member without screening any details of the data.

Inheritance:

Inheritance is processing of creating a new class from the original class or existing class.

The inherited class will have all the attributes of the original call.   In addition to the existing attributes in the original class the inherited class can have its own features embedded to it.  The good example of inheritance exists in the real life.  Grandfather-father-child.  The father will have some quality or character of grandfather and the child will have some quality of father and grandfather.

Polymorphism:

It is defined as many processes done by the similar function.   Example function of a

college student can be a polymorphism because he study, eat, sleep and play.  Similarly in OOP a function can be defined to do different work depending upon the number and type of arguments in the function.  The functions with same name but with different arguments can be generated in OOP.  Since similar function name is used to do different job the function is overloaded, which is called overloading of function, which is a feature of polymorphism.

Dynamic Binding:

It is depend on procedure in a class or function.  Depending upon the value passed to the

function in the class, the function work consequently.  It may look like polymorphism but is not polymorphism.

Message Passing:

It is calling the function  in a class.    The function  inside a class should be referred or

identified only through the class.

Posted Date: 9/20/2012 7:25:11 AM | Location : United States







Related Discussions:- Common concepts of object oriented, Assignment Help, Ask Question on Common concepts of object oriented, Get Answer, Expert's Help, Common concepts of object oriented Discussions

Write discussion on Common concepts of object oriented
Your posts are moderated
Related Questions
i wont to make triangle with number but number from the largest possible number to 01 (reversed).

removing jewel from a necklace

Here is a short program. It prints out the value of a variable "x". Ernie and Bert disagree about what will be printed: Ernie says, the value gets changed in "changeX" so it will p

I have to make a program that allow the user input 10 numbers between 10 and 100 and if the number input is the same than the last number, should appear an error message. I have th

Create a C language code, only one program, to implement the following task. Task: Write C code for a program that implements a digital clock (HH:MM:SS). The clock inclu

Assignment:  write a C program and a MASM procedure.  The C program calls the MASM procedure to perform letter case conversion. Text sections covered:  12.1 to 12.3.1 Write a

Observe that our model of evaluation allows for combinations whose operators are compound expressions. (a) Use this observation to describe the behavior of the following procedu

#questi An array of n numbers is given, where n is an even number. The maximum as well as minimum of these given numbers need to be determined. Which of the following is true about

Why can't one open a file in a different directory like "..\test.dat"? A: Since " " is a tab character. You must employ forward slashes in your filenames, even on operating s

decode smugglers are very smart in day by day