Solved

Consider the Following Code That Appears in a Test Class

Question 27

Multiple Choice

Consider the following code that appears in a test class. A a = new A() ;
Int c = a.b;
In order for this code to work,which statement must be true?


A) a must be declared public inside class A
B) b must be declared public inside class A
C) c must be declared public inside class A
D) Method b( ) must return int

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions