Answer Posted / poorna chandar rao
mainly overloading and overriding is used java polymorphisum
conbcept
overloading is method name same and method signature also
same it is called static polymorphisum when object is
created that decided by static polymorphisum
overriding is method name same but differtn arguments this
is called dynamic ploymaorphisum
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What do you mean by Encapsulation?
Why polymorphism is used in oops?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What are the three main types of variables?
What is oops in simple words?
Why do we use oops?
what type of question are asked in thoughtworks pair programming round ?
What is the use of oops?
What is the main feature of oop?
What is this pointer in oop?
What is the fundamental idea of oop?
What is class and object with example?
What is property in oops?
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 oops?what is its use in software engineering?