Answer Posted / preeti
in overloading methods can have the same name but must
have different parameter lists i.e signature
while in overriding if you declare a field in a subclass
with the same name as one in the superclass, the superclass
field can only be accessed using super or the superclasses
type
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is overloading in oop?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
When not to use object oriented programming?
What polymorphism means?
Give two or more real cenario of virtual function and vertual object
what type of questions
What are the features of oop?
write a C++ program for booking using constructor and destructor.
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
#include
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What do you mean by overloading?
What are functions in oop?
What is an advantage of polymorphism?
What is advantage of inheritance?