Given the following Imagine that is attached, select that all apply A. If the Other class extends the Base class then the method guessNumber() in Other overloads the method guessNumber in Base B. If...


Given the following Imagine that is attached, select that all apply


A. If the Other class extends the Base class then the method guessNumber() in Other overloads the method guessNumber in Base


B. If the Other class extends the Base class then the method guessNumber() in Other overrides the method guessNumber in Base


C. If the Base class implements MyInterface then it must implement the guessName method or declare it abstract.


D. If the Base class implements MyInterface, then every class that extends the Base class also implements MyInterface.


E. If the Other class extends the Base class, and implements MyInterface then the Base class also implements MyInterface


F. MyInterface can have private methods specified.


Given the following classes, select all the<br>statements that are true. Note that negative<br>marking applies.<br>Base.java:<br>public abstract class Base {<br>private String name;<br>public String getName () {<br>return name;<br>}<br>public abstract int guessNumber();<br>}<br>Other.java:<br>public class Other {<br>public int guessNumber () {<br>//<br>}<br>}<br>Mylnterface.java:<br>public interface MyInterface {<br>public String guessName();<br>}<br>

Extracted text: Given the following classes, select all the statements that are true. Note that negative marking applies. Base.java: public abstract class Base { private String name; public String getName () { return name; } public abstract int guessNumber(); } Other.java: public class Other { public int guessNumber () { // } } Mylnterface.java: public interface MyInterface { public String guessName(); }

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here