Which among the following should be encapsulated?

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

(A).  The data members that are members of  some another class (B).  The data members which are likely to change in long terms (C).  The data members which are intended to be changed (D).  The data members which are likely to change in the near future MCQ Answer: The data members which are likely to change in the near future

C++ Example of data members encapsulation in a class

  Output Rectangle_Length = 4 Rectangle_Width = 3 Area = 12
Which of the following can be encapsulated? (A).  data members (B).  member functions (C).  both of these (D).  None of these MCQ Answer: (C).  both of these
     
All Copyrights Reserved 2025 Reserved by T4Tutorials