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

Why do while loop is used?

1094


What polymorphism means?

1131


Can bst contain duplicates?

1242


What is class and example?

1262


What are the 3 principles of oop?

1167


Why multiple inheritance is not possible?

1117


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1689


How do you answer polymorphism?

1105


Whats oop mean?

1097


What is multilevel inheritance?

1255


write a program that takes input in digits and display the result in words from 1 to 1000

2487


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4210


program for insertion ,deletion,sorting in double link list

2744


What is encapsulation selenium?

1074


what are the different types of qualifier in java?

2315