Skip to content

Object-Oriented Programming (OOP)

Which statement correctly explains Access modifier?

Difficulty: Medium

About this MCQ

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

The question is: “Which statement correctly explains Access modifier?”

The accepted answer is C. A keyword that controls the visibility and accessibility of a class's members, such as public or private.. A keyword that controls the visibility and accessibility of a class's members such as public or private is the person body or term that satisfies Which statement correctly explains Access modifier option C Option A The practice of restricting direct access to an object's internal data to protect it from unintended interference does not match the stem it is a near-miss used to catch incomplete recall of A keyword that controls the visibility and accessibility of a class's members such as public or private Option B A design pattern that restricts the instantiation of a class to a single shared object does not match the stem it is a near-miss used to catch incomplete recall of A keyword that controls.

Correct answer

C. A keyword that controls the visibility and accessibility of a class's members, such as public or private.

Explanation

A keyword that controls the visibility and accessibility of a class's members such as public or private is the person body or term that satisfies Which statement correctly explains Access modifier option C Option A The practice of restricting direct access to an object's internal data to protect it from unintended interference does not match the stem it is a near-miss used to catch incomplete recall of A keyword that controls the visibility and accessibility of a class's members such as public or private Option B A design pattern that restricts the instantiation of a class to a single shared object does not match the stem it is a near-miss used to catch incomplete recall of A keyword that controls.

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