Answer Posted / priya
public:public is a access specifier and it is used to access
class member through out the program .
private:private is a access specifier by default our variables are private when we didn't specify any data type for our variable.
protected:protected is a access specifier and its a immediate to derived class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are properties in oop?
Which language is not a true object oriented programming language?
What is for loop and its syntax?
What are the benefits of interface?
What is abstraction example?
Why is static class not inherited?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is the main purpose of inheritance law?
What is encapsulation c#?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is the real life example of polymorphism?
what are the realtime excercises in C++?
What is the renewal class?
Is abstract thinking intelligence?
Get me a number puzzle game-program