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

Assignment Help:

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.


Related Discussions:- Common concepts of object oriented

Find area under curve, write a c program to find the area under the curve4...

write a c program to find the area under the curve4 f=(x) between x=a and x=l integrate y=(x) between the limits of a and b Solution: #include float    start_point,

#CompilerRelated, #C Why don''t online compilers support the header file?...

#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.

Return values, What is the purpose of return values? Can you not return any...

What is the purpose of return values? Can you not return any values from a function? If you could what would he function look like?

Program of libarary , #include #include using namespace std; class Book...

#include #include using namespace std; class Book { private: string title; int iD; int year_pub; string author; public: string getTitle(); int getId(); int getYear_Pub(); st

Program for memory optimization of c / opencl code, Program for Memory Opti...

Program for Memory Optimization of C / OpenCL Code Project Description: This is possibly a very simple project for someone with an excellent knowledge of C and OpenCL. That,

What does extern mean in a function declaration in c++, It tells the compil...

It tells the compiler that a variable or a function exists, even if the compiler hasn't yet seen it in the file presently being compiled. This variable or function may be distinct

Minimum shelf, At a shop of marbles, packs of marbles are prepared. Packets...

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers

C/c++, Byteland county is very famous for luminous jewels. Luminous jewels ...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

If statement, who to write max if statements in a program

who to write max if statements in a program

When do employ "const" reference arguments in function?, A: 1.      By u...

A: 1.      By using const protects you against programming errors which inadvertently alter data. 2.      By using const allows function to procedure const and non-const actu

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd