what is the main difference between c and c++?
Answer Posted / jhumu
DIFFERENCE BETWEEN C AND C++:
* C IS STRUCTURED PROGRAMMING LANGUUAG WHEREAS C++ IS
OBJECT ORIENTED PROGRAMMING LANGUAGE.
* C IS TOP-DOWN PROCESS BUT C++ IS BOTTOM-UP PROCESS.
* C++ IS PREDECCESSOR OF C.
* C++ SUPPORTS 5 MAIN CHARACTERISTICS CLASSES, OBJCECTS,
INHERITENCE, ENCAPSULATION AND POLIMORPHISM WHEREAS C
DOES'T SUPPORT THESE FEATURES.
* C++ USES CLASSES WHICH IS AS SIMILLAR AS STRUCTURE USED
IN C BUT THERE IS MINOR DIFFERENCE BETWEEN THEM IS
STURCTURE SUPPORTS ONLY DIFFERENT DATA TYPES WHEREAS CLASS
IS A COLLECTION OF DIFFERENT DATA MEMBERS AND MEMBER
FUNCTIONS ALSO.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can we define a class within the interface?
Where is pseudocode used?
What is the importance of oop?
Which method cannot be overridden?
What is polymorphism explain?
What is a class and object?
What is abstraction oop?
Why is polymorphism used?
Why is oop useful?
How do you answer polymorphism?
What is the significance of classes in oop?
Can a destructor be called directly?
What is object in oops?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Is oop better than procedural?