Methods Flashcards
(2 cards)
1
Q
How to call methods?
A
variable = method(with or without values);
2
Q
How to instantiate an object code?
A
ClassName objName = new ClassName (passing values)
How to call methods?
variable = method(with or without values);
How to instantiate an object code?
ClassName objName = new ClassName (passing values)