Answer Posted / rabih
two functions with same but different signature
example let take function name test return int and take a
parameter of type int (int test(int x))
let take same function of name test with different
signature void test(int x) or int test(bool n) or
int test(int x,string y)
all these functions can written in same class without any
error this means same function name(test)
different signature is deffernet return type or different
paraemeter type
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Please send ford technologies placement paper 2 my mail id
What is the real life example of polymorphism?
program for insertion ,deletion,sorting in double link list
What is the example of polymorphism?
What is the use of oops?
2. Give the different notations for the class.\
What is advantage of inheritance?
What is polymorphism oop?
Why is there no multiple inheritance?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is destructor oops?
What are the data types in oop?
When not to use object oriented programming?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
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.