what is the main difference between c and c++?

Answer Posted / sureshkumar koppineedi

C is a procedural oriented language .
c++ is a object oriented language.
OOps concepts are 1)encapsulation:-Taking data and methods
as an unit is called encapsulation.
2)Abstraction:-Hiding unnecessary data from the user is called
abstraction
3)Inheritence:-producing new classes from the existing classes.
4)Polymorphism:-Ability to exist in more than one form.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object with example?

590


Why do we need polymorphism in c#?

691


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1460


Why do we use polymorphism in oops?

585


What does I oop mean?

618






What are the 4 main oop principles?

685


What is the real time example of inheritance?

645


Why multiple inheritance is not allowed?

586


Why do we use class?

638


What is pure oop?

599


What is polymorphism in oops with example?

533


What do you mean by overloading?

586


Is abstract thinking intelligence?

601


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1623


What is polymorphism and example?

594