Chapter 6: Inheritance
This page contains questions, assignments, programs, and essays for learning about classes in Quorum.
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?
- Mammal can have subclasses.
- Mammal can have other parents than Animal.
- Animal can have only one subclass.
- 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
- Introduce the fundamentals of Inheritance
- Inheriting actions from a parent class
- Write actions for a class that uses inherited variables
- Learn about blueprints
- Create and use blueprints
- Create classes that use multiple blueprint actions
- Learn about polymorphism
- Apply the concept of inheritance across multiple classes
- Create and use a class hierarchical system
- Learn about inheritance
- Learn about the Libraries.Accessibility classes
- Build a screen reader that reads keystrokes
- Use blueprint actions
- Learn about the Libraries.Accessibility classes
- Build a screen reader that identifies a change in focus
Short Programming Projects
- Creating Class actions and using derived actions
- Using Inheritance
- Creating and using blueprint actions
- Using derived actions with blueprint actions
- Using inheritance
- Using polymorphism
- Creating class actions and using derived actions
Challenge Programming Projects
- Build an interactive battle simulator
- Use the Libraries.Sound.Audio library
- Use inheritance and blueprint actions