What is polymorphism ? Explain with examples
Answer Posted / nisha
Polymorphism means one name,many properties.Example of
polymorphism is function overloading whare we can have many
functions with same name but having different properties
like the number of arguments in the function header.
Is This Answer Correct ? | 43 Yes | 8 No |
Post New Answer View All Answers
What is static modifier?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is overloading and its types?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is oops and its features?
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 does no cap mean?
What is the fundamental idea of oop?
What is destructor in oop?
Explain the advantages of inheritance.
what type of questions
What is new keyword in oops?
Can private class be inherited?
Whats oop mean?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)