In an abstract class, you focus on the key qualities of the class and discard the qualities that are not important. This online video covers the basics of using abstract classes in programming, and guides you through the concept of how abstract classes can be used to share behaviors with other classes.
So what happens if you write a class that never gets instantiated?…Well, this can be a useful technique in Object Orientation.…I've shown this example of the BankAccount collection of classes where we have a…BankAccount class defined at the top with accountName and balance, deposit…behavior, and withdrawal behavior.…And then we have three more specialized classes that inherit from it,…CheckingAccount, SavingsAccount, InvestmentAccount, and so on.…But during the process of writing this, we might realize that will only ever…instantiate an actual CheckingAccount or SavingsAccount or some other…specialized account, we'd never actually instantiate a BankAccount class.…
Now if that's the case, this class can be considered an abstract class.…It exists purely for the sake of being inherited. Abstract classes are never instantiated.…Now this class is still incredibly useful, it can contain functionality,…methods, variables, and so on because they'll all be inherited.…So it exists to provide shared behaviors.…In some languages like C# or Java, you can explicitly mark a class as Abstract…
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.