Why do we use virtual functions?

Answer Posted / uma sankar pradhan

we use virtual functions to achive dynamic binding
Dynamic binding is establishing relation between the
function call and function definition at run time

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not an object oriented programming language?

741


What is static in oop?

831


Can static class have constructor?

787


Advantage and disadvantage of routing in telecom sector

1027


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?

1819


write string class as your own class in java without using any built-in function

2213


What is polymorphism programming?

853


What is property in oops?

793


What is the difference between a constructor and a destructor?

858


What is the purpose of enum?

771


What is inheritance and how many types of inheritance?

825


what is graphics

2207


Can a varargs method be overloaded?

821


How do you explain polymorphism?

805


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1987