Creating your own classes (cont'd)

In more conventional OOP languages, you can also start with an existing class and create a new class by extending the existing class. 

When a new class extends an existing class, an object of the new class will contain

In other words, all of the variables and all of the methods are inherited into an object of the new class going all the way up the family tree to the topmost class in the inheritance hierarchy.