Objects of the same class as values of the class

Viewed 33

Is it possible to have a class MyClass{}; with an obejct "MyClass object;" as its value?

Something like this:

class MyClass{

private:
    MyClass object;
};
0 Answers
Related