What are the differences between public, private, and
protected access?
Answer Posted / prashant kalmodiya
PUBLIC: Specifies that those all members are accessible
from any function.
PRIVATE: Specifies that those members are accessible only
from member functions and friends functions of the class.
PROTECTED: Specifies access to class members in the member-
list up to the next access specifier (public or private)
| Is This Answer Correct ? | 18 Yes | 8 No |
Post New Answer View All Answers
What is the use of endl?
Which is best ide for c++?
What is the use of structure in c++?
How do you decide which integer type to use?
What is doubly linked list in c++?
Explain linear search.
What is microsoft c++ redistributable?
what is oops and list its features in c++?
How would perform Pattern Matching in C++?
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
How many standards of c++ are there?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Can a new be used in place of old mallocq? If yes, why?
Is it possible to get the source code back from binary file?
What are built-in functions? What is the syntax for the definition?