What is Virtual Keyword?

Answer Posted / deepak kumar

using virtual keyword we can change the defination of base
class method via overriding them in derived class.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can we make game by using c

3417


What is the difference between a constructor and a destructor?

612


State what is encapsulation and friend function?

697


What are the 4 pillars of oop?

670


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1981






What does it mean when someone says I oop?

581


2. Give the different notations for the class.\

1587


• What are the desirable attributes for memory managment?

1725


What are the 4 main oop principles?

682


to find out the minimum of two integer number of two different classes using friend function

1639


why reinterpret cast is considered dangerous?

1898


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


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.

693


What does and I oop mean in text?

620


What is abstract class in oops?

598