Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
29 Cards in this Set
- Front
- Back
What does OOP stand for? |
Object Oriented Programming |
|
What is an object, in object oriented programming? |
A thing, both tangible and intangible,that we can imagine. Students, room, floor, bicycle are examples |
|
An object is called a __________ of a class |
Instance |
|
What must be defined before you can create an object? |
A class must be defined prior to creating an instance of an object |
|
If you had a rubber stamp and a piece of paper that you stamped with the rubber stamp, which would more closely resemble a class and which would more closely resemble an object? |
The stamp is the class and the reproduction of the stamp on the paper is the object. Classes can be used to create any number of copies of the object defined in the stamp. |
|
What is a sequence of instructions that a class or an object follows toperform a task? |
A method |
|
What is the difference between a class method and an instance method? |
A method defined for a class is called a class method, and a methoddefined for an object is an instance method. |
|
For the method below, what are "beginindex" and "endindex"? s.substring ( beginindex, endindex ) |
Parameters |
|
For the method below, what are "3" and "7"? s.substring ( 3, 7 ) |
Arguments |
|
What is used to represent information shared by all instances or torepresent collective information about the instances? |
Class data values |
|
What's the difference between class data value and instance data value? |
Class data values are inherent to all instances of that class, for instance, maximum speed for a vehicle or number of seats. |
|
What is a variable? |
A data member that can change |
|
What is a constant? |
A data member that cannot be changed |
|
What are other names for a superclass and subclass? |
Ancestor and descendant |
|
How many subclasses can a superclass contain? |
Unlimited. And that superclass can have a class data value that is inherited by each subclass that is derived from it |
|
If Class A inherits from Class B, which is a superclass? Which is a subclass? |
Class A is superclass and Class B is subclass |
|
What are the five major phases in the software life cycle? |
analysis, design, coding,testing, and operation |
|
What is an object? |
An object is an instance of a class. Many instances can be created from asingle class. |
|
What is another name for data values? |
Data members |
|
With exception to block comments, what is typically the first portion of your code block? |
import statement |
|
According to this book, what three elements are universally included in any Java program? |
Comment, import statement, class declaration |
|
What is the difference between programmer defined classes and Java standard classes? |
Programmer defined classes are the classes that programmersdefine, including ourselves, and the predefined classes that come with the Javasystem are known as Java standard classes |
|
How do we use an object in a program? |
First we declare and create an object, and then we send messages to it. |
|
What are the elements of an import statement? |
import <class name>.<subclass name>.<object names> ; |
|
How do you import all objects for a subclass? |
import <class name>.<subclass>.* ; |
|
Can the identifier (name) of a class, object, or method begin with a digit? |
No |
|
Can the identifier (name) of a class, object, or method contain a space? |
No |
|
True or false, case does not matter in Java |
False; Case definitely matters in JAvA |
|
Standard naming convention for Java dictates that each word in an class, object or method identifier must be |
capitalized, with exception to the first word of an object. |