Inheritance
Last updated
What is Inheritance?
Inheritance is a fundamental concept in object-oriented programming where a new class (called a subclass or derived class) can inherit properties and methods from an existing class (called a superclass or base class). This allows you to create a hierarchy of classes, where subclasses inherit and extend the functionality of their superclasses, promoting code reuse and establishing relationships between different types of objects.
Free resources to learn Inheritance
- Official docsInheritance
- ArticleSwift Inheritance
- VideoSwift For Beginners - Class & Inheritance Explained
More in stage 24: What is SwiftUI
Inheritance: common questions
Can I learn Inheritance in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Inheritance in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Inheritance tutorial for beginners?
It is lesson 58 of 156 in the free Swift & Swift UI roadmap, in stage 24, What is SwiftUI. If you are new to Swift & Swift UI, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.