Abstract Quiz

By Mickey Arnold
Last updated 10 months ago
10 Questions

A abstract class can extend another _________________ .

What is the minimum number of methods a class extending abstract class Demo could have?
public abstract class Wile {
public abstract String destroy();
}

What is the number of methods a class extending abstract class SpaceShip should implement?
public abstract class SpaceShip {
public Demo() {
}
public abstract String destroy();
public String toString() {
return "--";
}
}

Which of the following could be placed in Box?
public abstract class Box {
}

Which of the following could be placed in Demo?
public abstract class Demo {
}

Which of the following could be placed in Bison?
public abstract class Bison
{
}

Which of the following could be placed in Eagle?
public abstract class Eagle
{
}

Which of the following could be placed in Smasher?
public abstract class Smasher
{
}

Which of the following could be placed in Grill?
public abstract class Grill
{
}

Which of the following could be placed in Socks?
public abstract class Socks
{
}