Variable
reference to a object
M: .Clone
used to make a copy |
EX:
p3 = p2;
p3 = p2.clone( `)
Parameter Passing
Consider the code: Greeter.setName(“Mars”);
Object Ref on which you invoke a method is called Implicit para.
Item passed to a method in the parentheses are called explicit para
Implicit Para
To USE the implicit you must use the special name : “THIS”.
_______________
Code EX:
public class Greeter
{private String name;public void setName (String name)
this.name = name;
}
}