Skip to content

Object-Oriented Programming (OOP)

What is Method overriding primarily used for?

Difficulty: Medium

About this MCQ

This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.

The question is: “What is Method overriding primarily used for?”

The accepted answer is C. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.. Method overriding refers to the ability of a subclass to provide a specific implementation of a method already defined in its parent class.

Correct answer

C. The ability of a subclass to provide a specific implementation of a method already defined in its parent class.

Explanation

Method overriding refers to the ability of a subclass to provide a specific implementation of a method already defined in its parent class.

Source: Object-Oriented Programming (OOP) Official Reference Guide

Tags: computer science, oop, object-oriented programming, software design

Submitted by: MCQsHub Editorial

Related MCQs

More Object-Oriented Programming (OOP) MCQs