6.1 Overview
Working with Inheritance
This module introduces the concept of inheritance in object-oriented programming (OOP). You will learn about abstract classes, methods, constructors, visibility modifiers, and more. Throughout the course, we will see how inheritance allows for code reuse and extensibility.
Topics Covered
- Principles of Object Oriented Programming
- Designing a Class, Adding Fields, Methods, and Constructors
- Extending a Class with Another Class, Creating Abstract Classes
- Modeling Object Behavior with Interfaces
- Constructing an Object, Calling a Constructor from a Constructor
Learning Objectives:
- Understand the fundamental principles of object-oriented programming (OOP)
- Learn how to design a class by adding fields, methods, and constructors
- Explore how inheritance allows a class to extend another class, enabling code reuse
- Learn to create and work with abstract classes and abstract methods
- Understand how to model object behavior using interfaces
- Learn the process of constructing objects and calling constructors from within other constructors
- Understand visibility modifiers and how they affect inheritance and object behavior