Answer Posted / pramod
overloading :- There are two functions which have the
same name and they differ only either in their argument
number or argument type like myfunction(int a) and
myfunction(float a).
Overriding :- There are two functions with the eaxtly same
name,same type. One of these functions is in base class and
one will be in derived class
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are the 5 oop principles?
what are the ways in which a constructors can be called?
How to call a non virtual function in the derived class by using base class pointer
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Write a program to sort the number with different sorts in one program ??
How do you use inheritance in unity?
What is the purpose of enum?
Why do pointers exist?
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.
Templates mean
Write a c++ program to display pass and fail for three student using static member function
What is object in oop?
What is the difference between abstraction and polymorphism?
can we make game by using c
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?