What is Virtual Keyword?

Answer Posted / tamil venthan

using virtual we can override the same function for
different sub classes ,By creating the pointer to the base
class we can allocate the separate memory for every
class(memory consumption)not for all classes

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

class type to basic type conversion

2063


What is overriding vs overloading?

761


What is static in oop?

806


What is the main feature of oop?

869


What does sksksk mean in text slang?

1804






Which language is not a true object oriented programming language?

839


What is a null tree?

832


What is polymorphism in oops?

717


Why we use classes in oop?

745


What is the real time example of inheritance?

827


hi all..i want to know oops concepts clearly can any1 explain??

1868


What are the 5 oop principles?

807


What is a superclass in oop?

896


What is interface? When and where is it used?

1856


What is pointer in oop?

715