An Object is a Copy of a Class. Each Object can use Variables & Methods of a Class. A Class is a Template for Object.
Object Class Methods :
- Void Method:
Initialize Object of Rectangle Class and use Data and Method in it.
- Return Value from Method:
- Pass Value in Method:
this. will use Class Level Data.
Go to JAVA Page .
Next >>> Constructor