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 |
Define precondition and post-condition to a member function?
Can we define a constructor as virtual in c++?
What is a sequence in c++?
Can I create my own functions in c++?
How do I get good at c++ programming?
describe private access specifiers?
Describe new operator and delete operator?
What are C++ inline functions?
What are containers in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
When should we use container classes instead of arrays?
Is set c++?