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
13 questions
Quiz1_PBO_B_C

Quiz
•
University
10 questions
Java SE: Programming I

Quiz
•
Professional Development
12 questions
javaquizvivek

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
9 questions
Java Interface Quiz

Quiz
•
University
10 questions
CMP128 Java Ch. 05 Methods

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade