Extending a class in C++
Hello I have a simple class which looks like this

    class Player {

        public:
            void DoSomething(){
                //
            }
    }

I want to use this class as a base class for another class. So I want something like

    class Dotty extends Player {

        
    }

So I can use Dotty.DoSomething() without having to code DoSomething() in my Dotty class.
Extending a class in C++
===

Hello I have a simple class which looks like this

    class Player {

        public:
            void DoSomething(){
                //
            }
    }

I want to use this class as a base class for another class. So I want something like

    class Dotty extends Player {

        
    }

So I can use Dotty.DoSomething() without having to code DoSomething() in my Dotty class.