Answer Posted / reena ashok mohite
Public, Protected And Private these Are the Access Specifier Which We Use In Within The Class,
We Can Use Protected Access specifier In The Class And Its Derived Class,
we Can Use Public Access Specifier throught out the class,
(Anywhere In The Class)
And Private Specifier Can Be Accessable Within The Class Where It Is Declared........
This Is Useful To Data Hiding Purpose
Thanks........
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is class in oop with example?
What are main features of oop?
Write a program to sort the number with different sorts in one program ??
Why is encapsulation used?
What are the benefits of interface?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is encapsulation in ict?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What are the benefits of oop?
Is this job good for future? can do this job post grduate student?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is polymorphism what are the different types of polymorphism?
What is abstraction in oops?
What does I oop mean?
What is the use of oops?