Question: Consider the following code that appears in a test class. A a = new A(); int c = a.b; In order for this code to

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?

Question 9 options:

A)

Method b( ) must return int

B)

c must be declared public inside class A

C)

b must be declared public inside class A

D)

a must be declared public inside class A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!