Skip to content

Object-Oriented Programming (OOP)

What term describes the following? a special method automatically called when an object of a class is created, used to initialize it.

Difficulty: Medium

About this MCQ

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

The question is: “What term describes the following? a special method automatically called when an object of a class is created, used to initialize it.”

The accepted answer is B. Constructor. Constructor refers to a special method automatically called when an object of a class is created, used to initialize it.

Correct answer

B. Constructor

Explanation

Constructor refers to a special method automatically called when an object of a class is created, used to initialize it.

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