J.A.V.A (OOP) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Variable

A

reference to a object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

M: .Clone

A

used to make a copy |

EX:
p3 = p2;
p3 = p2.clone( `)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Parameter Passing

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Implicit Para

A

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;
}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly