CSE 11 Chapter Notes - Chapter 5: Regression Testing, Java Compiler, Unit Testing
Document Summary
Object consists of some internal data items plus operations that can be performed on that data. Class defines a new type group data and methods to form an object defined and initialized a variable of a class type. Method that is part of a class uses a . operator: member access operator objectname. membermthd(); public access modifier in the class definition list before member methods interface the public member methods used by class user. Create an object define a variable of class type: reference variable, reference type explicitly allocate an instance of the class type, object, uses new operator. // public member methods public type membermthd(parameters) { Must provide complete list of all java source files to compiler then run program java javaclassfile. Accesor accesses fields but may not modify them. Setter and getter method pair of associated methods with a field. Private helper methods help public method carry out their task.