210k views
0 votes
A program uses two classes: dog and poodle. which class is the base class and which is the derived class?

2 Answers

2 votes
Dog is the base class and poodle is the derived class.
There had to be dog in order for there to be poodle, because poodle is a dog(meaning poodle came from dog).
Therefore, poodle is a type of dog, so it derived from the dog.
Example; without your parents there would be no you, so you derived from your parents.
User Nagri
by
7.5k points
3 votes
Dog is the base class and poodle is the derived class. 
User Auris
by
8.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.