InterviewSolution
| 1. |
Which Should Be More Useful: The Protected And Public Virtuals? |
|
Answer» PUBLIC virtuals are more preferable than protected virtuals. Public virtuals permit a PROGRAM to directly modify the values of data members. It can be accessible to any function that is within the scope of the structure. It translates the IMPLEMENTATION for the user of the class. It is the most common, convenient, and easiest way to implement by any of the programs. Public virtuals are more preferable than protected virtuals. Public virtuals permit a program to directly modify the values of data members. It can be accessible to any function that is within the scope of the structure. It translates the implementation for the user of the class. It is the most common, convenient, and easiest way to implement by any of the programs. |
|