Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the access specifiers avaible in c++?

Answers were Sorted based on User's Feedback



What are the access specifiers avaible in c++?..

Answer / rajeev kumar rana

private, public, protected

Is This Answer Correct ?    9 Yes 1 No

What are the access specifiers avaible in c++?..

Answer / mayank kumar

private, protected and public

Is This Answer Correct ?    5 Yes 0 No

What are the access specifiers avaible in c++?..

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

What are the access specifiers avaible in c++?..

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

Post New Answer

More OOPS Interview Questions

how to find no of instances of an object in .NET?

1 Answers   Infosys,


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


What is oops and why we use oops?

0 Answers  


What does and I oop mean in text?

0 Answers  


Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


What do you mean by stack program? Get me an example stack program?

4 Answers  


What is difference between polymorphism and inheritance?

0 Answers  


what is the diffrence between c# and c++

5 Answers  


What is the difference between Home and $Home?

2 Answers   TCS,


What are two types of polymorphism?

0 Answers  


This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

0 Answers  


Categories