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

Use the code below for the next three questions. public class SomeClass { privat

ID: 3734088 • Letter: U

Question

Use the code below for the next three questions.

public class SomeClass {

private int myValue;

public SomeClass() {

myValue = 1;

}

public void changeValue(int newValue) {

int updatedValue = newValue * myValue;

myValue = updatedValue;

}

}

Flag this Question

Question 312 pts

What is newValue?

Flag this Question

Question 322 pts

What is myValue?

Flag this Question

Question 332 pts

What is updatedValue?

formal parameter

Section 6: Inheritance and Polymorphism

Flag this Question

Question 341 pts

All methods in an abstract class must be abstract.

Flag this Question

Question 351 pts

The Object class is at the top of the Java inheritance hierarchy.

Flag this Question

Question 361 pts

Java supports multiple inheritance, meaning that a class can have more than one direct parent.

Flag this Question

Question 371 pts

A private instance data variable in a parent class is directly accessible in the child class.

Flag this Question

Question 381 pts

Java allows you use an abstract class or an interface as the declared type of an object.

Flag this Question

Question 392 pts

The relationship between a child and a parent class is referred to as a/an _____ relationship.

Flag this Question

Question 402 pts

All classes in Java are directly or indirectly subclasses of what class?

Flag this Question

Question 412 pts

The instruction super(); does which of the following?

Flag this Question

Question 42 2 pts

Which of the following is true regarding every Java class that you create from scratch?

Flag this Question

Question 432 pts

In order to determine the actual type that a polymorphic variable refers to, the decision is made

actual parameter

Explanation / Answer

1 Answer) actual parameter
2 Answer) instance data
3 Answer) local variable
4 Answer) False
Explnation:- If any one of the methods in a class is abstract, then the class will be abstract

5 Answer) True
6 Answer) False
Explnation:- Java supports single inheritance only

7 Answer) False
8 Answer) True
9 Answer) is-a
10 Answer) Object
11 Answer) calls the default constructor in the parent class
12 Answer) Any class I write classes can have 0 or 1 parent classes and any number of child classes
13 Answer) by the compiler at compile time.