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

Is oop better than procedural?

1041


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

2502


Why do pointers exist?

1100


When not to use object oriented programming?

1110


What are the two different types of polymorphism?

1145


Why do we use class?

1090


Why is oop better than procedural?

1084


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6680


What is the difference between a constructor and a destructor?

1262


What is overriding vs overloading?

1064


Write a c++ program to display pass and fail for three student using static member function

3400


What is the highest level of cohesion?

1052


What is a superclass in oop?

1177


when to use 'mutable' keyword and when to use 'const cast' in c++

2165


What is abstract class in oops?

1026