In a class only declaration of the function is there but
defintion is not there then what is that function?

Answer Posted / guest

virtual function

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between public, private, and protected access?

614


What is name hiding in c++?

607


Can I learn c++ without learning c?

561


Is java made in c++?

579


What is the need of a destructor?

635






You want to link a c++ program to c functions. How would you do it?

535


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

576


Explain the isa and hasa class relationships.

587


What are the advantages of inheritance in c++?

653


How long it will take to learn c++?

610


What are signs of manipulation?

583


Which software is best for coding?

570


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1504


Why the usage of pointers in C++ is not recommended ?

890


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

637