Which change will enable the code to compile?

Given: Which change will enable the code to compile?

Given: Which change will enable the code to compile?

A.
Adding the public modifier to the declaration of method1 at line n1

B.
Removing the public modifier from the definition of method1 at line n2

C.
Changing the private modifier on the declaration of method 2 public at line n3

D.
Changing the line n4 DoClass doi = new DoClass ( );



Leave a Reply 0

Your email address will not be published. Required fields are marked *