Inheritance lets you create a new class that is based on an existing class. Using inheritance can save you the trouble and time involved with starting from scratch. This programming tutorial will help you understand the broader concept of inheritance by giving you a step-by-step tutorial for using the technique.
- View Offline
Here's a few examples of using Inheritance across several different languages, so you…can read and recognize it in code when you see it.…And don't worry about memorizing syntax here, we're just trying to get an overview.…If I want to create a new class called Album that inherits from a Product class, this would…be the way that I would do it in Java.…Just simply use the extends word, and then the name of the class that I want to inherit from.…In C# we'd use a colon. This is a very common way to denote Inheritance.…
Album inherits from Product. In VB.NET we actually use the word Inherits.…Ruby is a little different, it uses the Less Than sign to say that Album inherits from Product.…C++ uses the colon as does Objective-C.…So taking this first basic idea of Inheritance between languages really is a very minor syntax change.…Although, however, the details of overriding, that's allowing a new class to replace the…implementation of the method in superclass are a little too specific to the language to be useful here.…
Let Simon Allardice introduce you to the terms—words like abstraction, inheritance, polymorphism, subclass—and guide you through defining your requirements and identifying use cases for your program. The course also covers creating conceptual models of your program with design patterns, class and sequence diagrams, and unified modeling language (UML) tools, and then shows how to convert the diagrams into code.
- Why use object-oriented design (OOD)?
- Pinpointing use cases, actors, and scenarios
- Identifying class responsibilities and relationships
- Creating class diagrams
- Using abstract classes
- Working with inheritance
- Creating advanced UML diagrams
- Understanding object-oriented design principles
Skill Level Intermediate
1. Core Concepts
2. Object-Oriented Analysis and Design
Defining requirements6m 9s
3. Utilizing Use Cases
4. Domain Modeling (Modeling the App)
5. Creating Classes
6. Inheritance and Composition
7. Advanced Concepts
8. Object-Oriented Design Patterns
9. Object-Oriented Design Principles
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.