Answer the following questions about how objects work, using this chapter and explorations on the Web.

1. What is inheritance?
2. What is a super class?
3. What is a sub class?
4. What methods does a child class inherit?
5. What instance variables (fields) does a child class inherit?


1. Inheritance is a feature of object oriented programming in which certain classes can inherit data and behavior from a “parent” class. They also allow for instant polymorphism.
2. The super class is the class from which another class inherits.
3. The sub class is the class that inherits from a super class.
4. In Java, a subclass inherits all of the public and protected members of its parent (those that specifically make use of those specialized words in their definition). In Python, a subclass inherits all of the members from its parent class.
5. (Same answer as the above)

Computer Science & Information Technology

You might also like to view...

In database connection string terminology, DSN stands for:

a. data structure name b. dynamic structure name c. data source name d. dynamic source name

Computer Science & Information Technology

Using c*t in the Criteria row would match coat, coated, and coating

Indicate whether the statement is true or false

Computer Science & Information Technology

Calls transmitted over the internet instead of over traditional telephone lines or cellular towers.

A. Asynchronous communication B. DSL C. VoIP

Computer Science & Information Technology

The means by which an operating system or any other program interacts with the user is called the ____.

A. user login B. programming interface C. program front-end D. user interface

Computer Science & Information Technology