Answer Posted / cl
The difference is the invocation of constructor: malloc
does not do it.
Is This Answer Correct ? | 11 Yes | 7 No |
Post New Answer View All Answers
Why do we use encapsulation in oops?
Why is polymorphism used?
What are main features of oop?
Whats oop mean?
What is inheritance and how many types of inheritance?
can we make game by using c
What is this pointer in oop?
What is polymorphism what is it for and how is it used?
Get me a number puzzle game-program
Why is there no multiple inheritance?
Why is oop useful?
#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
Can abstract class have normal methods?
What is debug class?what is trace class? What differences are between them? With examples.