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 is pointer in oop?

1052


What is overloading in oop?

1006


What is coupling in oops?

1148


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

1030


What is a function in oop?

1083


What are benefits of oop?

1129


Explain virtual inheritance?

1199


What is the difference between procedural programming and oops?

1129


What is the difference between a mixin and inheritance?

986


When not to use object oriented programming?

1104


What are the features of oop?

1175


Which language is not a true object oriented programming language?

1131


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

1239


Can you explain polymorphism?

1110


What is overriding vs overloading?

1058