difference between class and object
Answer Posted / selva
class is a blueprint of an object.
object is instance of class.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
which feature are not hold visual basic of oop?
What is ambiguity in inheritance?
What is destructor example?
What is pointer in oop?
How do you define a class in oop?
What is encapsulation with example?
Why is there no multiple inheritance?
Can static class have constructor?
What is difference between abstraction and encapsulation?
What is interface in oop?
Prepare me a program for the animation of train
What is meant by multiple inheritance?
What is class and object with example?
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
Whats is abstraction in oops?