Question: Consider the following class declarations. public class Iteml . public class Item2 extends Iteml ...) Which of the below statements is true? I. Item2 can

 Consider the following class declarations. public class Iteml . public class

Consider the following class declarations. public class Iteml . public class Item2 extends Iteml ...) Which of the below statements is true? I. Item2 can directly access the private variables in Item1 Il. Item2 can have additional methods not in ltem1 II. Item1 is the parent class for the child class Item2. l. Item2 can directly access the private O IlI only I, II, and IlI and Ill only Il and II only Ionly

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!