Ask Question
22 January, 07:02

Define inheritance. give an example

+5
Answers (1)
  1. 22 January, 08:18
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers