Presentation is loading. Please wait.

Presentation is loading. Please wait.

OOPDA Review. Terminology class-A template defining state and behavior class-A template defining state and behavior object-An instance of a class object-An.

Similar presentations


Presentation on theme: "OOPDA Review. Terminology class-A template defining state and behavior class-A template defining state and behavior object-An instance of a class object-An."— Presentation transcript:

1 OOPDA Review

2 Terminology class-A template defining state and behavior class-A template defining state and behavior object-An instance of a class object-An instance of a class variable-Storage for data variable-Storage for data field- Storage for an object’s data (i.e. an instance variable) field- Storage for an object’s data (i.e. an instance variable) static field-Storage for a class’s data (i.e. a class variable) static field-Storage for a class’s data (i.e. a class variable) method-Behavior of an object (i.e. an instance method) method-Behavior of an object (i.e. an instance method) static method -Behavior of a class (i.e. a class method) static method -Behavior of a class (i.e. a class method) constructor -Method used to initialize an object constructor -Method used to initialize an object parameter -Variable defined in a method signature parameter -Variable defined in a method signature local variable -Variable defined inside a method. local variable -Variable defined inside a method.

3 Terminology public class { private int ; public String ; float ; public (int, float ) { this.x = x; y = w; s = new String (“hi”); } public void aMethod (int x) { String ; print ( ); } class fields constructor method parameters local variable signature MyClass x w public void aMethod (int x) x s y field s s this.s parameter x this.x

4 Terminology this this A reference to the object ‘receiving’ the method call. A reference to the object ‘receiving’ the method call. (See demo) (See demo)


Download ppt "OOPDA Review. Terminology class-A template defining state and behavior class-A template defining state and behavior object-An instance of a class object-An."

Similar presentations


Ads by Google