Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we have a private virtual method ?

Answer Posted / nk

We can have virtual functions as long as we dont call the
function from a base pointer pointing to the base
class/derived class.

If we call then gives error.

The same error can be tested by compiling and running above
example.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oops?

1046


What is the problem with multiple inheritance?

1167


What is encapsulation with real life example?

1036


What is difference between pop and oop?

1168


Which language is not a true object oriented programming language?

1135


What is encapsulation oop?

1041


What are oops methods?

1004


What is polymorphism used for?

1066


Write a program to reverse a string using recursive function?

2341


What are constructors in oop?

1180


What is persistence in oop?

1145


Why it is called runtime polymorphism?

1134


What is oops?what is its use in software engineering?

1032


What is a superclass in oop?

1175


What are main features of oop?

1121