features of OOPS

Answer Posted / shivam`

There are two types of polymorphism.

1. Compile time polymorphism - It is achieved by
overloading functions and operators
2. Run time polymorphism - It is achieved by overriding
virtual functions

Lets say you have a class that have many Load methods having
different parameters, this is called Compile time
polymorphism. Lets take another example where you have a
virtual method in the base class called Load with one
parameter and you have redefined its functioanlity in your
sub class by overriding base class Load method, this is
called Run time polymorphism.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What exactly is polymorphism?

610


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.

632


Write a program to sort the number with different sorts in one program ??

1922


What is static in oop?

591


What is polymorphism in oop example?

517






program for insertion ,deletion,sorting in double link list

2283


What is pure oop?

599


When not to use object oriented programming?

572


What do you mean by Encapsulation?

642


What are the features of oop?

641


Why do we use inheritance?

630


Which is better struts or spring?

624


What is inheritance and how many types of inheritance?

622


What is coupling in oop?

600


What is inheritance in oop?

604