what is the main difference between c and c++?
Answer Posted / rakshana
c->does not provides features for easy programming
c++ ->provides polymorphism,inheritance,abstraction and
encapsulation for easy programming
c-> without classes
c++ -> c with classes
| Is This Answer Correct ? | 44 Yes | 9 No |
Post New Answer View All Answers
How oops is better than procedural?
What is methods in oop?
How do you explain polymorphism?
any one please tell me the purpose of operator overloading
How is class defined?
What does no cap mean?
Can bst contain duplicates?
What is the difference between procedural programming and oops?
What is object-oriented programming? Webopedia definition
What is the purpose of polymorphism?
What is static in oop?
What are the advantages of polymorphism?
How long to learn object oriented programming?
#include
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash