Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Inheritance

class Animal {
    // eat() function
    // sleep() function
};

class Dog : public Animal {
    // bark() function
};
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #Inheritance
ADD COMMENT
Topic
Name
3+6 =