click below
click below
Normal Size Small Size show me how
ADVANCED QUIZ Ch 24
| Term | Definition |
|---|---|
| Structured Programming | an organized style of programming that places emphasis on modular programming, which aids testing, debugging and modifying. Modules are procedures and functions that process external data passed by parameters. |
| Object Oriented Programming | style with emphasis on reliability through modular programming; Contain modules (classes), data, and subroutines (methods) that process data. OOP traits include: Encapsulation, Polymorphism, and Inheritance. |
| Attributes and Methods | What objects in java are made up of. |
| Encapsulation | Process of placing data structure's data (attributes) with the methods (actions) that act upon the data inside the same module, called a class in Java. |
| Inheritance | is the process of using features (both attributes and actions) from an established higher class. |
| Superclass | Higher class in java whose public methods and attributes/variables may be used by a class (subclass) that extends it. |
| Subclass | Lower class in Java that extends from a Superclass -- extends meaning that the class is able to use (inherits) all public attributes/variables and public methods from the superclass. |
| Polymorphism | Allows a single accessing feature, such as an operator, method or class identifier, to have many forms. |
| Class | data type that encapsulates both data and the methods that act upon the data; template for the construction of objects |
| Object | One instance of a class |
| Attributes/instance variables/fields | The data components of a class. In the majority of classes, instance variables should only be accessed by methods of the same class. |
| Methods | Action modules that process data. Sometimes called subroutines, procedures, or functions in other languages.Declared inside a class module -- process the instance variables |
| Instantiation | Moment or instance that memory is allocated for a specific object of a class; Statements like 'construction', 'definition' and 'creation' of an object have the same meaning as instantiation. |
| constructor | The special method that is called during the instantiation of a new object whose purpose is to initialize instance variables (fields/attributes); has the same identifier as the class; is neither a void nor a return method |
| default constructor | Constructor without parameters |
| Private class members | Can only be accessed by methods of it's own class. |
| Public class member | Can be accessed by any client of an object x |
| Inner class | Class declared inside another class. |