[Solved] C++ class declarations (inheritence) [closed]


class X
{
};

class Y : public X
{
public:
    // For defining an abstract class without pure virtual functions:
    virtual ~Y() = 0;

    virtual void method() = 0;  
};

class Z : public Y
{
public:
    void method() override
    {
    }
};

7

solved C++ class declarations (inheritence) [closed]