Given: What is the result?
A.
Initialized Started
B.
Initialized Started Initialized
C.
Compilation fails
D.
An exception is thrown at runtime
Given: What is the result?
A.
Initialized Started
B.
Initialized Started Initialized
C.
Compilation fails
D.
An exception is thrown at runtime
I suppose the correct answer is C
answer is C.
TestCall cannot access c.init().
Because init() is a private method.
—-
error: init() has private access in Caller
c.init();
—-
c