Ask Question

When presented with two classes that have a parent-child relationship, you can tell which class is the base class and which is the derived class by using the two classes in a sentence using what phrase?

+1
Answers (1)
  1. 28 April, 04:27
    0
    ClassA extends ClassB

    Explanation:

    When presented with two classes that have a parent-child relationship, we can tell which class is the base class and which is the derived class by using the two classes in a sentence using the extend phrase.

    For Example:

    ClassA extends ClassB

    In this example, the first class that is ClassA is the derived class as it comes before the extend keyword. While the second class that is ClassB is the parent class as it comes after the extend keyword.

    Extend keyword shows that ClassA is extended with ClassB features.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When presented with two classes that have a parent-child relationship, you can tell which class is the base class and which is the derived ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers