Abstract Quiz
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
10 Questions
1 point
1
Question 1
1.
A abstract class can extend another _________________ .
A abstract class can extend another _________________ .
1 point
1
Question 2
2.
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 minimum number of methods a class extending abstract class Demo could have?
public abstract class Wile {
public abstract String destroy();
}
1 point
1
Question 3
3.
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 "--"; }}
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 "--";
}
}
1 point
1
Question 4
4.
Which of the following could be placed in Box?public abstract class Box {}
Which of the following could be placed in Box?
public abstract class Box {
}
1 point
1
Question 5
5.
Which of the following could be placed in Demo?public abstract class Demo {}
Which of the following could be placed in Demo?
public abstract class Demo {
}
1 point
1
Question 6
6.
Which of the following could be placed in Bison?public abstract class Bison{}
Which of the following could be placed in Bison?
public abstract class Bison
{
}
1 point
1
Question 7
7.
Which of the following could be placed in Eagle?public abstract class Eagle{}
Which of the following could be placed in Eagle?
public abstract class Eagle
{
}
1 point
1
Question 8
8.
Which of the following could be placed in Smasher?public abstract class Smasher{}
Which of the following could be placed in Smasher?
public abstract class Smasher
{
}
1 point
1
Question 9
9.
Which of the following could be placed in Grill?public abstract class Grill{}
Which of the following could be placed in Grill?
public abstract class Grill
{
}
1 point
1
Question 10
10.
Which of the following could be placed in Socks?public abstract class Socks{}
Which of the following could be placed in Socks?
public abstract class Socks
{
}