![]() |
What is the Difference between class and object? |
[Edit] |
[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;
}
First answer by ID211974530. Last edit by ID211974530. Question popularity: 14 [recommend question]
|
Research your answer: |
Can you answer other
questions about programming?
- Can someone help you to write a program to generate the possible outcomes when numeber of coins tossed is entered by the user?
- What are the advantages in listening?
- How are data represented in memory?
- What does it mean when I am asked this question Assume you have been assigned a web development project that will provide the online presence of a corporation?





