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...

What is virtual class and friend class?

Answer Posted / vaibhav panchal

A virtual class is an inner class that can be overridden by
derived classes of the outer class.

eg.
class Base
{
public:
int value
};
class child1 : public Base { };
class child2 : public Base { };
class grandchild : virtual public child1, virtual public
child2
{
public:
grandchild() { value };
};

Is This Answer Correct ?    38 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of oop?

1093


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2078


What is object-oriented programming? Webopedia definition

1178


class type to basic type conversion

2337


How do you achieve runtime polymorphism?

994


What is oops in simple words?

1032


What is polymorphism used for?

1014


What is the benefit of oop?

999


What is encapsulation selenium?

953


Can you inherit a private class?

1057


What is overriding vs overloading?

1004


What does and I oop mean?

1103


What is interface? When and where is it used?

2105


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

2075


What are oops methods?

945