click below
click below
Normal Size Small Size show me how
Computer Program 2
Chapter 5
| Question and terms | Answers and Definition |
|---|---|
| A java program consistst of __________ | objects |
| Objects can be _________ | class types |
| Objects can interact with other _______ | Objects |
| Program objects can represent __________ in the real world and __________ | objects, abstractions |
| Each java class definition is usually in a file by itself (True or False and explain why its False if it is) | True |
| The file begins with the name of the String (True or False and explain why its False if it is) | False. It is actually a class |
| Java class definition ends in .java (True or False and explain why its False if it is) | True |
| The class can be compiled together (True or False and explain why its False if it is) | False. Has to be seperate |
| Where should you keep all class files used by the program | The same directory |
| The note class has _____ pieces of data and ______ behaviors | three, two |
| The note classes three pieces of data are called ______ | instances variables |
| Each instance of the note class has its own copies of the data items (True or False and explain why its False if it is) | True |
| When you use a method you _______ it | Invoke |
| Invoke means to _________ | call |
| THere is one kind of java method (True or False and explain why its False if it is) | False. there are two |
| The java methods ________ a single item | return |
| The java methods perform another action called the ________ method | void |
| The method __________ is a ______________ method | main, void |
| The void method is not invoked by the system (True or False and explain why its False if it is) | False. it actually is |
| The void method is not by the application program (True or False and explain why its False if it is) | True |