Types of languages
Identify what each part of this statement is
Person p = new Person()
Person = Class p = Instance variable () = Constructor
What does inheritance do in OO languages? (Object Oriented)
It provides a mechanism to promote reuse and extensibility
What is a class that is being extended known as?
Base, Super or Parent class.
The new class is known as a subclass
How to define a single super class in Java
By using (extends) as Java is a single inheritance language
Inheritance hierarchy example
Mammal
/ \
Whale Person
/ / \
Humpback Student Lecturer