
Java Inheritance

Quiz
•
Computers
•
University
•
Medium

A Vijay Kumar
Used 181+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following Syntax is used for?
class Subclass-name extends Superclass-name
{
//methods and fields
}
Polymorphism
Encapsulation
Inheritance
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class that is inherited is called a ______ .
superclass
Subclass
subsetclass
Relativeclass
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When an object's class is a subclass of a more general class.
Extension
Aggregation
Inheritance
Dependency
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java statement represents inheritance?
class body inherit Car
class body super Car
class body extends Car
class body this Car
class body override Car
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is/are false about inheritance in Java?
I. A subclass inherits all the methods and variables of the superclass.
II. A subclass can override the methods of its superclass
III. A subclass has access to the private instance variables of the superclass.
I only
II only
III only
I and II only
I and III only
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
OBJECT ORIENTED PROGRAMMING WITH JAVA

Quiz
•
University
10 questions
INTRODUCTION TO OOPS

Quiz
•
University
10 questions
Inheritance

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
Object/Abstract/Final in JAVA

Quiz
•
University
10 questions
Pewarisan (Inheritance) in JAVA

Quiz
•
University
15 questions
Object Oriented Programming MCQs

Quiz
•
University
9 questions
Inheritance + java

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade