click below
click below
Normal Size Small Size show me how
Runestone 2.1-2.5
| Question | Answer |
|---|---|
| Attribute | defines data that an object knows about itself |
| Method | behaviors that an object can perform |
| Class | defines the attributes and behaviors of an object |
| object-oriented programming | data attributes and behaviors/methods that use them are grouped together in objects |
| constructor | a special type of method that is used to initialize the attributes in a newly created object |
| new | keyword required to create an object |
| formal parameters | variables that act as placeholders |
| argument/actual parameters | values placed between the parentheses of a method call |
| constructor overloading | when a class has more than one constructor |
| no-argument constructor | a constructor that has no parameters |
| library | a collection of classes already written by somebody |
| signature(header) | tell you the name and parameter list of a constructor or header |
| parameter list | list the formal parameter, declaring the variable that will be passed in as values and their data types |
| object variable | used to reference an object |
| pass by value | when copies of the actual parameter values are passed to a constructor or method |
| object(non-static) methods | requires a constructed object to be called |
| class(static) method | is called with a class |
| void method | a method that does not return anything |
| return method | a method that returns a value or an object |
| return type | data or object type that is returned by the method |
| getter method | non-void methods that return an attribute value |
| toString() method | returns a String that describes the object |
| dot notation | objectName.methodName() or Class.methodName() |