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


Please Help Members By Posting Answers For Below Questions

which feature are not hold visual basic of oop?

1725


What is ambiguity in inheritance?

625


What is destructor example?

601


What is pointer in oop?

541


How do you define a class in oop?

629






What is encapsulation with example?

582


Why is there no multiple inheritance?

572


Can static class have constructor?

587


What is difference between abstraction and encapsulation?

594


What is interface in oop?

664


Prepare me a program for the animation of train

2003


What is meant by multiple inheritance?

741


What is class and object with example?

589


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

1702


Whats is abstraction in oops?

593