What are the access specifiers avaible in c++?
Answers were Sorted based on User's Feedback
Answer / kanan
public,
private ,
protected ,
internal and
protected internal
public :
public is the most common access specifier in C# . It can be
access from anywhere, that means there is no restriction on
accessibility. The scope of the accessibility is inside
class as well as outside. The type or member can be accessed
by any other code in the same assembly or another assembly
that references it.
private :
The scope of the accessibility is limited only inside the
classes or struct in which they are declared. The private
members cannot be accessed outside the class and it is the
least permissive access level.
protected :
The scope of accessibility is limited within the class or
struct and the class derived (Inherited )from this class.
internal :
The internal access modifiers can access within the program
that contain its declarations and also access within the
same assembly level but not from another assembly.
protected internal :
Protected internal is the same access levels of both
protected and internal. It can access anywhere in the same
assembly and in the same class also the classes inherited
from the same class .
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / xxx
The last answer is wrong. internal and Protected Internal
not there in C++. Answer is relevant to C# not C++.
| Is This Answer Correct ? | 4 Yes | 1 No |
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the advantages of inheritance?
26 Answers IBS, TCS,
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....
Templates mean
What is oop in simple words?
is there any choice in opting subjects like 4 out of 7
What is abstract class in oop?
The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?
Can enum be null?
Which language is not a true object oriented programming language?
different types of castings
what is difference between objects and function