Answer Posted / rashid
Class is nothing but it is the collection of data member and
variable while object is an instance of a class.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why is static class not inherited?
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.
Why do we use class?
Why do we use encapsulation in oops?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is the difference between static polymorphism and dynamic polymorphism?
Can bst contain duplicates?
How do you define social class?
Explain the advantages of inheritance.
Can an interface inherit a class?
What do you mean by abstraction?
What is difference between data abstraction and encapsulation?
program for insertion ,deletion,sorting in double link list
What does and I oop mean?
What is object and example?