Difference between over loading and over ridding?
Answer Posted / sri
overloading means when u define more than one function with
same name but different arguments and return type.it is
compiletime allocation
overriding means when we define more than one function with
same name,same arguments.it mainly used in inheritance
concept.it is runtime allocation
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a function in oop?
Can an interface inherit a class?
what is difference between class template and template class?
What is the highest level of cohesion?
What are the benefits of oop?
What is difference between inheritance and polymorphism?
Why is abstraction needed?
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.
What is the difference between abstraction and polymorphism?
What is abstract class in oops?
why reinterpret cast is considered dangerous?
What are the three parts of a simple empty class?
Can static class have constructor?
What is the importance of oop?
What does and I oop and sksksk mean?