1. Home
  2. Engineering
  3. Computer Engineering
  4. Which statement is correct? Encapsulation

Added 28 Nov 2026

Which statement is correct? Encapsulation

  1. Is an example of compile-time polymorphism
  2. Means bundling data and methods together and restricting direct access to the data Correct answer
  3. Is a named location in memory that stores a value
  4. Is a violation of the grammatical rules of the language

Correct answer

B. Means bundling data and methods together and restricting direct access to the data

MCQSEXAM

Explanation

Encapsulation means bundling data and methods together and restricting direct access to the data.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Object-oriented_programming

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs