Search unanswered questions...
Enter a question here...

What is the Difference between class and object?

[Edit]

Answer

An object is an instance of a class.

Such that, if class is:
class MyClass {
public:
int x;
};

Than an object would be:
int main()
{
MyClass my_object;
}

Improve Answer Discuss the question "What is the Difference between class and object?" Watch Question

First answer by ID211974530. Last edit by ID211974530. Question popularity: 14 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > What is the Difference between class and object?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Class and object?  Object and class?  Is class an object?  What is object n class?  What is class and object?  Difference beween class and object?  Difference between class and object?  Difference between object and class?  Difference between object and classes?  Difference between object and instance?  Different between an object and a class?  Give difference between class and object?  Difference between an object and a class?  Difference between class and object in c?  Difference between a class and an object?  Difference between the class and an object?  What is difference between object and class?  What is the different between object and class?  What is the difference between an object and a?  What is the difference between object and class?