Answer Posted / yughandhar
public:
public is an access specifier which can be used throughout
the program.
protected:
protected is an access specifier which can be used in the
specified class and its derived class...
private:
private is an access speifier which can be used whithin the
class in which it is declared.
These three access specifiers are used for providing the
security
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What are the 3 principles of oop?
Can we define a class within the interface?
What is polymorphism used for?
Plese get me a perfect C++ program for railway/airway reservation with all details.
can we make game by using c
Can a destructor be called directly?
Whats oop mean?
What is abstraction with example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
State what is encapsulation and friend function?
How do you use inheritance in unity?
What is polymorphism in oops with example?
What is polymorphism and example?
Explain virtual inheritance?
What are benefits of oop?