Constructors are not inherited. True False Flag this Question Question 2 1 pts B
ID: 3692795 • Letter: C
Question
Constructors are not inherited. True False Flag this Question Question 2 1 pts By default all members of an interface are public. True False Flag this Question Question 3 1 pts When a class contains an abstract method, the class cannot be instantiated. True False Flag this Question Question 4 1 pts A superclass reference variable can reference an object of a subclass that extends the superclass. True False Flag this Question Question 5 1 pts The superclass constructor always executes before the subclass constructor. True False Flag this Question Question 6 1 pts In a subclass, a call to the superclass constructor can only be written in the subclass constructor. True False Flag this Question Question 7 1 pts An object of a superclass can access members declared in a subclass. True False Flag this Question Question 8 1 pts Abstract classes cannot ____. be used as superclass have abstract methods be instantiated have fields Flag this Question Question 9 1 pts Abstract methods must be ___. overridden overloaded deleted and replaced with real methods declared as private Flag this Question Question 10 1 pts Fields in an interface are ___. final static both final and static not allowed Flag this Question Question 11 1 pts When a class implements an interface, it must ___. overload all of the methods listed in the interface provide all of the methods that are listed in the interface, with the exact signatures and return types specified not have a constructor be an abstract class Flag this Question Question 12 1 pts In an inheritance relationship, this is the specialized class superclass master class subclass parent class Flag this Question Question 13 1 pts These superclass members are accessible to subclasses and classes in the same package. private public protected all of these Flag this Question Question 14 1 pts This key word refers to an object's superclass super base superclass this Flag this Question Question 15 1 pts In an inheritance relationship, this is the general class. subclass superclass slave class child class
Explanation / Answer
1) Constructors are not inherited.
Answer : True.
Because Constructors are not members of class. Only members of class can be inherited.
2) By default all members of a interface are public
Answer : True
Because if the interface is public then only it can be accessed by classes of other package.
3) When a class contain a abstract method the class cannot be instantiated
Answer : true
An abstract class cannot be instantiated because abstract method does not have any implementation i.e abstract methods does not have any code.
4) True.
The super class reference variable can reference a object of sub class.
5) True
Always the super class constructor is invoked before the sub class constructor
6) True
The call to super class is always written in sub class only. Because of inheritance concept. The super class methods are inherited by sub class.
7) False
Because sub class is inheriting super class but super class is not inheriting the sub class. That means a sub class object can access the members of super class but a super class object cannot access sub class members becuase it is not inheriting sub class.And a sub class can have different memebers and methods which are not in super class.
8) Abstract methods cannot be instantiated.
9) Abstract methods must be overridden.
10) Fields in an interface are both final and static.
11) provide all of the methods that are listed in the interface with exact signatures and return types specified.
12) sub class
13) private
14) super class
15) super class
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.