Questions

1. What is the keyword used to inherit a class?

2. List at least three pros of inheritance.

3. Create a class that inherits another class.

4. What is the difference between a derived class and a base class(a child and parent class)?

5. What is a blueprint and what does it do?

6. What is the keyword for creating a blueprint, and where does it go in an action?

7. Are you able to instantiate an object of a class with only blueprint actions? Why or why not?

8. What's the keyword "parent" used for?

9. What's the keyword "me" used for?

10. What is polymorphism?

11. Give a small example of polymorphism in action.

12. How is it that polymorphism enables you to program "in the general" rather than "in the specific"?

13. What is the difference between inheritance and instantiation?

14. What is the advantage of creating a class with blueprint actions?

  1. Mammal can have subclasses.
  2. Mammal can have other parents than Animal.
  3. Animal can have only one subclass.
  4. Mammal can have siblings.

Essay Questions

1. Explain some of the uses inheritance has and why programmers use it.

2. Explain what polymorphism is and how it benefits coders. How does polymorphism relate to and work with inheritance?

In Class Lab Assignments

Lab Manual 6.1
Lab Manual 6.2
Lab Manual 6.3
Lab Manual 6.4
Lab Manual 6.5

Short Programming Projects

Assignment Manual 6.1
Assignment Manual 6.2
Assignment Manual 5.3

Challenge Programming Projects

Challenge Project 6.1