C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 50)
50.
Which of the following is an invalid visibility label while inheriting a class?
Discussion:
6 comments Page 1 of 1.
Bipin said:
7 years ago
But we cannot inherit private members also. Then how it is possible?
(1)
Sushil said:
9 years ago
As we know, here all are access specifier except friend.
(1)
Renu said:
1 decade ago
Friend is not an access specifier.
(1)
Nag said:
1 decade ago
Friend is not Access modifier so there is no visibility for this.
(1)
Nasir said:
1 decade ago
Friend is a keyword not a access specifier so it is a invalid visibility mode.
(1)
Shaik abdul lateef said:
1 decade ago
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.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers