New course! Every coder should learn Generative AI!
Try a free lesson+ 3
A colon ( : ) is used to inherit from another class, usually in combination with an access specifier, typically public. If you don't specify an access specifier by yourself, then private inheritance is used by default.