Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please answer all of the questions or the ones you have the answer too. No expla

ID: 3707721 • Letter: P

Question

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

Explanation / Answer

35. The answer would be A. The public member of superclass.

36. The answer would be A. Single inheritance.

37.The answer would be C. The relationship between these classes implies that Dog "is a" retriever.

38. The answer would be c. Two (i.e. variables a and b).

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote