Question: suppose that a class named classeda contains a private nonstatic integer named b, a public nonstatic integer named c, and a public static integer named

suppose that a class named classeda contains a private nonstatic integer named b, a public nonstatic integer named c, and a public static integer named d. which of the following are legal statements in a class named class b that has initiated an object as class oba = newclassa().

a. obA.b = 12;

b. obA.c = 5;

c.obA.d = 23;

d. ClassA.b = 4;

e. ClassA.c = 33;

F.ClassA.d = 99;

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!