What do you mean by public, private, protected and friendly?
Answer Posted / achal ubbott
public means access to the object of the class, created in
outside world.
private and protected are almost the same, except the
difference that protected members are inheritable and thus
can be used by derived class. These can be accessed only by
the public function members of the class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism what is it for and how is it used?
What does and I oop mean?
What is a class oop?
Write a c++ program to display pass and fail for three student using static member function
What does no cap mean?
What is destructor in oop?
What is methods in oop?
What is multilevel inheritance?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is a superclass in oop?
What is difference between inheritance and polymorphism?
What is interface in oop?
Which method cannot be overridden?
What is the fundamental idea of oop?
What is pointer in oop?