In which cases you use override and new base?
Answers were Sorted based on User's Feedback
Answer / naveen goud
It is used to ovveride superclass method.Suppose in super
calss we had a method getEmployee() in the subclass am
overriding it and am giving the new implementation.Means am
just giving new implementation instead of using the same
implementation.
| Is This Answer Correct ? | 0 Yes | 0 No |
In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that
What is class and object in oops?
What are properties in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
How do you use inheritance in unity?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the difference between abstraction and polymorphism?
How can you overcome the diamond problem in inheritance?
what is an qt4 interface?
what is multithreading in c++ , what is difference between multithreading and singlethreading.
What is abstraction in oop with example?
How is data security provided in Object Oriented languages? ?