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.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Inheritance
ADD COMMENT
Topic
Name
4+5 =