What are the c++ access specifiers?

Answer Posted / hrpynux@gmail.com

In C++, there are three access specifiers: public - members are accessible from outside the class. 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       View All Answers


Please Help Members By Posting Answers For Below Questions

By using c++ with an example describe linked list?

608


What is c++ virtual inheritance?

602


State two differences between C and C++.

612


Which is better c++ or java?

570


What are the various oops concepts in c++?

606






What do you mean by a template?

630


the maximum length of a character constant can be a) 2 b) 1 c) 8

605


Is c++ a good first language to learn?

582


Why is c++ still best?

560


What is a sequence in c++?

587


What is a namespace in c++?

604


What are the different types of comments allowed in c++?

581


Is c++ free?

586


How do I tokenize a string in c++?

614


Write a Program to find the largest of 4 no using macros.

588