Answer Posted / nagendra.c
Bjarne stroustrup
| Is This Answer Correct ? | 85 Yes | 5 No |
Post New Answer View All Answers
What is inheritance in simple words?
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.
Which method cannot be overridden?
Can we override main method?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Can an interface inherit a class?
What is ambiguity in inheritance?
What is destructor give example?
What is polymorphism what is it for and how is it used?
what is difference between class template and template class?
What is meant by multiple inheritance?
write a program that takes input in digits and display the result in words from 1 to 1000
What is the fundamental idea of oop?