Search Header Logo

Introduction to inheritance and polymorphism

Authored by Whizara Teacher

Computers

6th - 12th Grade

 Introduction to inheritance and polymorphism
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ promotes reusability by allowing us to inherit attributes from a base / parent class to another class, which is known as the derived / child class.

Polymorphism

Inheritance

Encapsulation

Abstraction

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Polymorphism is achieved in Java using

 function/method overloading

 this statement

 nested loops

break statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a class has multiple methods having the same name but different in parameters, it is known as ____ overloading.

class

object

method

data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ means “of many forms”. It allows us to perform a single action with different outcomes and can be viewed as a way to reuse methods / operators to achieve different things.

Encapsulation

Looping

Polymorphism

Object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following class exhibits which feature?

class Adder{  

    static int add(int a, int b){

        return a+b;

    }  

    static double add(double a, double b){

       return a+b;

    }  

Polymorphism

Abstraction

Operator overloading

 None of the mentioned

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?