Ask Question
27 October, 15:16

Define inheritance. give an example

+2
Answers (1)
  1. 27 October, 15:25
    0
    A class can be defined using another class as a foundation. In object-oriented programming terminology, one class can inherit fi elds and methods from another. An object that inherits from another is called a subclass, and the object it inherits from is called a superclass. A subclass extends the superclass.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Define inheritance. give an example ...” 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