What is an abstract method?

Abstract Class

Quiz
•
Professional Development, Computers
•
University - Professional Development
•
Medium
Muhd Lutfir
Used 3+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An abstract method is any method in an abstract class.
An abstract method is a method which cannot be inherited.
An abstract method is one without a body that is declared with the reserved word abstract.
n abstract method is a method in the child class that overrids a parent method.
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Abstract class can have all of the below except
Abstract methods
Methods with code implementation
Used to create objects
Used to create subclasses
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should be the code in the blank from the given codes?
public abstract class Person{
public abstract void enroll();
}
public class Student extends Person(
______________________________
{
public void eat(){
}
public void enroll(){
}
public void drop(){
}
public class Person()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill up the correct code in the given program below.
public abstract class BSIT2A{
public _____________ void read();
}
public class Student extends BSIT2A{
public void read(){
}
static
final
abstract
public
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the given code below correct?
public class Person{
public abstract void enroll();
}
Yes
No
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the code below correct?
public abstract class Pet{
public abstract void eat();
}
public class Cat extends Pet{
public void eat(){
}
}
Yes
No
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the given code below correct?
public abstract class Person{
public final abstract void draw();
}
public class Student extends Person{
public void draw(){
}
}
Yes
No
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the program code below correct?
public abstract class Person{
public abstract double computeGrade();
}
public class Student extends Person{
public double computeGrade(){
return 90.0;
}
}
Yes
No
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the right code on the blank in the given program below?
public abstract class Pet{
public abstract int getAge();
}
public class Cat __________ Pet{
public int getAge(){
return 5;
}
}
abstract
final
extends
static
Similar Resources on Quizizz
9 questions
Java Interface Quiz

Quiz
•
University
10 questions
CMP128 Java Ch. 05 Methods

Quiz
•
University
10 questions
PreTraining4PillarsOOP

Quiz
•
Professional Development
10 questions
Java main() and Scanner

Quiz
•
Professional Development
14 questions
Lets explore Java

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
6 questions
Inheritance and polymorphism

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade