Chapter 5: Classes
This page contains questions, assignments, programs, and essays for learning about classes in Quorum.Control Structures Quiz
- Explain the relationship between classes and objects
- What is an array and what do we use them for?
- What is the difference between an action and a class and what do you use each for?
- What are generics and what do we use them for?
- Describe the concepts of public or private in relation to fields and actions.
- What statement do you have to have in order to create an Array?
- If the words public or private are left off, what is the default for actions and fields? Why might that be the default?
- What is the integer value for the first index in an array?
- What's the difference between class variables and local variables?
- What is autoboxing?
- Explain how lexical scoping works for variables with the same name with fields and nested conditionals.
- Where can the package statement go in a file?
- Describe the concept of packages and give two examples of classes and what packages they live in.
- Describe why packages are useful.
- What is the purpose of"on create"?
Essay Questions
- Describe in a paragraph or two the concept of information hiding. In your description, state how this might relate to the concepts of public or private.
- Describe the concept of auto-boxing and how it relates to using arrays with generics. Give examples of auto-boxing with integers and numbers.
Next Tutorial
In the next tutorial, we will discuss Inheritance, which describes how work inheritance in Quorum..