1.

Virtual functions can’t be made friend function of other classes.(a) True(b) FalseThe question was asked in exam.This question is from Virtual Functions in division Member Functions & its Types of Object Oriented Programming

Answer» CORRECT answer is (a) True

Explanation: The friend functions can ACCESS the PRIVATE members also. This may hinder the SECURITY of class members. This is why the functions should not be made friend functions of other class.


Discussion

No Comment Found

Related InterviewSolutions