Is there something that we can do in C and not in C++?
Answers were Sorted based on User's Feedback
Answer / vaishnavi
there are many concepts that can be used in c++ where c
cannot support those concepts.
The following are some of those type of concepts:-
1.function overloading
2.operator overloading
3.templates
4.polymorphism
5.inheritence
6.data encapsulation
7.function over-riding
8.virtual functions
9.constructors & destructors
10. exceptional handling.
| Is This Answer Correct ? | 4 Yes | 10 No |
Describe functional overloading?
What is the purpose of extern storage specifier?
What is type of 'this' pointer? Explain when it is get created?
What is split a string in c++?
Is c++ an oop?
What is static class data?
Describe private, protected and public?
If dog is a friend of boy, is boy a friend of dog?
Program to check whether a word is a sub-string or not of a string typed
What is setw manipulator in c++?
What is the two main roles of operating system?
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.