Hiding individual components of an entry is _____

polymorphism
encapsulation
scaling
not recommended in C++

The correct answer is B. encapsulation.

Encapsulation is the process of hiding the internal details of an object and only exposing the necessary information to the outside world. This is done by bundling data and code together into a single unit, called a class. The class provides a public interface that allows other objects to interact with it, but the internal details of the class are hidden from view.

Encapsulation is a powerful tool that can be used to improve the design and implementation of software. It can help to prevent errors, make code more reusable, and make it easier to test and maintain software.

Here is a brief explanation of each option:

  • Polymorphism is the ability of an object to take on multiple forms. This is achieved by using inheritance and virtual functions.
  • Scaling is the process of increasing the size or capacity of something. In the context of software, scaling refers to the ability of a system to handle increasing amounts of data or traffic.
  • Not recommended in C++ is not a valid option. C++ is a programming language that supports encapsulation.
Exit mobile version