Discussion :: OOPS Concepts - General Questions (Q.No.50)
Which of the following is an invalid visibility label while inheriting a class?
Answer: Option D
No answer description available for this question.
|Shaik Abdul Lateef said: (Jul 14, 2012)|
|They are three types of accessfiers (public, private, protected). So friend is a keyword and it also a function type. So friend is the invalid visibility label while inheriting a class.|
|Nasir said: (Jan 10, 2013)|
|Friend is a keyword not a access specifier so it is a invalid visibility mode.|
|Nag said: (Jun 16, 2013)|
|Friend is not Access modifier so there is no visibility for this.|
|Renu said: (Nov 26, 2014)|
|Friend is not an access specifier.|
|Sushil said: (Nov 27, 2016)|
|As we know, here all are access specifier except friend.|
|Bipin said: (Apr 9, 2018)|
|But we cannot inherit private members also. Then how it is possible?|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.