Ask Question
14 February, 04:47

Define inheritance. give an example

+3
Answers (1)
  1. 14 February, 07:47
    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?
Get an answer to your question ✅ “Define inheritance. give an example ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers