Java Ch 3
Methods, Classes and Object
Terms
undefined, object
copy deck
- Returning a value
- sends a data value from a called method back to the calling method
- Class Client/User
- application or class that istantiates objects of another prewritten class
- Abstraction
- programming feature that allows you to use a method name to encapsulate a series of statements
- Interface
- includes the methods return type, name and arguments. it is the part that a client sees and uses
- Method
- program module that contains a series of statements that carry out a task
- Constructor Method
- method that establishes an object
- Default Constructor
- created automatically by the Java compiler
- Is-a relationship
- relationship between an object and the class of which it is a member
- Instance variables
- nonstatic data fields. One copy exists for every object created
- Arguments/Parameters
- data items sent to methods
- Primary key
- unique identifier for data within a data base
- Implementation Hiding
- principal of object-oriented programming that describes the encapsulation of method details within a class
- Information Hiding
- object-oriented programming principle used when creating private access for data fields, a class's private data can be changed or manipulated only by a class's own methods, and not by methods that belong to other classes
- Data Fields
- variables you declare withing a class, but outside of any method