Answer Posted / nikhil kapoor..
Generic functions are the function which return void ptr...
(void*)...
Generic Classes are template classes...
Basicaly we implement both of them for reusability.. and
abstraction..
| Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
Why is abstraction needed?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is the difference between abstraction and polymorphism?
Why do we use polymorphism in oops?
What is super in oop?
What is pointer in oop?
What is polymorphism explain?
Why multiple inheritance is not allowed?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the features of oop?
What is use of overloading?
What is oops with example?
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 types?