Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer all of the questions or the ones you have the answer too. No explanation needed, just the answer. Thank you! Name: ID: A
Please answer all of the questions or the ones you have the answer too. No explanation needed, just the answer. Thank you!
Name: ID: A 35. A subelass can directly access public members of a rpelssc. all members of a superclass a. b. private members of a f superclass none of the members of a superclass 36. What type of inheritance does Java support? a. single inheritance b. double inberitance c multiple inheritance d. Java does not support inheritance. 37. If class Dog has a subclass Retriever, which of the following is true? a. Because of single inheritance, Dog can have no other subelasses. b. Because of single inheritance, Retriever can extend no other class except Dog c. The relationship between these classes implies that Dog "is-a" Retriever d. The relationship between these classes implies that Retriever "has-a" Dog. 38. Consider the following class definitions. public class BClasa private int x private double y public void print() public class DClass extends Bclass private int a private int b public void print0 Suppose that you have the following statement. Suppose DClass dobject - new DClass O How many instance variables does dobject have c. three d four b. two
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started