Question: Which is not a true statement given this diagram? Assume all classes are public. A. Instance methods in the Blanket class can call the Flashlight
Which is not a true statement given this diagram? Assume all classes are public.
A. Instance methods in the Blanket class can call the Flashlight class’s turnOn().
B. Instance methods in the Flashlight class can call the Flashlight class’s replaceBulb().
C. Instance methods in the Phone class can call the Blanket class’s wash().
D. Instance methods in the Tent class can call the Tent class’s pitch().
E. None of the above.
com.light Flashlight private replaceBulb () public turnon () Phone protected display() public charge () com.dark Blanket wash () Tent private pitch() public goCamping ()
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
From the information provided in the diagram we can analyze each statement A Instance methods in the ... View full answer
Get step-by-step solutions from verified subject matter experts
