Question 1 of 10 1.0 Points The instruction super(); does which of the following
ID: 3721007 • Letter: Q
Question
Question 1 of 10 1.0 Points The instruction super(); does which of the following? A. calls the method super as defined in the current class O B. calls the method super as defined in the current class' parent class O C.calls the method super as defined in java.lang D. calls the constructor as defined in the current class E. calls the constructor as defined in the current class' parent class Reset Selection Mark for Review What's This? Question 2 of 10 1.0 Points Refer to the "Hourly" and "Employee" classes provided on paper, how many class instance variables does the parent class of the "Employee" class appear to have? O B. 2 ??.3 D. 4 O E. 5Explanation / Answer
//Answers are explained in comments --Some answers needed code .If you post again , i will answer.So only which dont need code ,i answered:
1. Needs Java Program Code which you are refering
2. Needs Java Program Code which you are refering
3. B) A3 is a subclass of A2 and A2 is a subclass of A1
explanation:
A3 is derived from A2 and A2 is derived from A1
4. B)Protected instance variables and methods
Child class inherits only Protected instance variables and methods,Public access specifiers of
Super class
5. e)x,a,q
because remaining are private of A2 or protected and private of A1
A3 can access only public,protected of A2 apart from its variables.
6.)
Need Java program Code to exactly know the ans
7.) c) Sailboat and Tug Boat
Sailboat and Tug boat are two types of boats.Remaining options ,second can be derived from first .
8.) a and c
SuperClass Super();//Default constructor calls
SuperClass Super(1,2,3);//Parameterised constructor called
9.)Need Java program code to know the ans
10) a)Private
Subclasses cannot access superclass private variables or methods.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.