What do you mean by C++ access specifiers ?



What do you mean by C++ access specifiers ?..

Answer / hrpynux@gmail.com

Access specifiers define how the members (attributes and methods) of a class can be accessed. ... private - members cannot be accessed (or viewed) from outside the class. protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Should you pass exceptions by value or by reference?

0 Answers  


What is the use of main function in c++?

0 Answers  


#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }

1 Answers   Infosys,


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


Is facebook written in c++?

0 Answers  






Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)

4 Answers   HTC, TCS,


How do you declare a set in c++?

0 Answers  


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  


Can a constructor return a value?

0 Answers  


Which software is best for coding?

0 Answers  


Program to check whether a word is a sub-string or not of a string typed

0 Answers  


what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??

4 Answers  


Categories