Sololearn: Learn to Code
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.
14th Aug 2019, 5:42 PM
Shadow
Shadow - avatar