Question:
Is there anything you can do in C++ that you cannot do in C ?
Answer:
U can even write big projects like design of compilers. Source: CoolInterview.com
Answered by: prathyush | Date: 6/27/2008
| Contact prathyush
ITS VERY GOOD QUESTION BECAUSE WE CAN PROGRAMED Any thing in C/C++ BUT C++ GIVE MORE RE-USABILITY, AND IT'S A OBJECT ORIENTED LANGUAGE . THE THING WHICH ARE NOT SUPPORTED BY C ARE- 1) INHERITANCE 2) POLYMORPHISM 3) OPERATOR OVER LOADING 4) ABSTRACTION(DATA HIDING) AND OTHER OOP's FEATURE Source: CoolInterview.com
Answered by: Mayank Singh Parihar | Date: 7/1/2008
| Contact Mayank Singh Parihar
The things which we can do in c++ but not in c are :- 1)overloading 2)inheritance 3)polymorphisms 4)dynamic allocation of variables Source: CoolInterview.com
Answered by: amol bhosale | Date: 7/12/2008
| Contact amol bhosale
1)overloading 2)inheritance 3)polymorphisms 4)dynamic allocation of variables
can be done in C either. But we need to put extra effort in implementing these in C. Overloading can be done using function pointers. Inheritance can be done using subclassing. i.e using a struct inside another struct as first member. overloading is one type of polymorphism. you can do dynamic memory allocation through malloc and free. Source: CoolInterview.com
Answered by: Krishna Reddy | Date: 8/7/2008
| Contact Krishna Reddy
cpp is object oriented,and it contains the property of re_ usability i.e inheritance and it has some additional features like operator overloading,abstraction,and it has some memory management operators Source: CoolInterview.com
Answered by: Nagarjuna | Date: 8/11/2008
| Contact Nagarjuna
Inheritance, abstraction, security for data, overloading, over ridding, polymorphisms,message passing. Source: CoolInterview.com
Answered by: Joselyn | Date: 10/7/2008
| Contact Joselyn
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|