Answer Posted / kiran kumar.b
a class is a logical existence of a data containing data
variables and member functions having relations between
them.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
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
What is this pointer in oop?
What do you mean by overloading?
What is polymorphism what is it for and how is it used?
#include
Get me a number puzzle game-program
What is the fundamental idea of oop?
What is polymorphism in oops with example?
What is oops with example?
What is protected in oop?
Why is encapsulation used?
How many human genes are polymorphic?
Which type does string inherit from?
State what is encapsulation and friend function?
What is polymorphism and its types?