Answer Posted / rahul
When an object create means suddenly construtor get executed
| Is This Answer Correct ? | 22 Yes | 3 No |
Post New Answer View All Answers
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is difference between multiple inheritance and multilevel inheritance?
What are the types of abstraction?
What is and I oop mean?
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 and example?
Can we have inheritance without polymorphism?
write knight tour problem which is present in datastructure
What are classes oop?
Can a varargs method be overloaded?
explain sub-type and sub class? atleast u have differ it into 4 points?
How do you define social class?
What are the benefits of interface?
How do you achieve runtime polymorphism?
What is the point of polymorphism?