713 views
5 votes
Methods used with object instantiations are called ____ methods.

a.
accessor

b.
instance

c.
internal

d.
static

1 Answer

1 vote

Answer:

b. instance

Step-by-step explanation:

Methods used with object instantiations are the instance methods. When a class is instantiated we get a reference to the object. Invoking a method on the object , executes the corresponding instance method.

For example:

String s = new String("test");

int len = s.length();

Here length() is an instance method of String object s.

User Toffler
by
6.9k points