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?

Answers were Sorted based on User's Feedback



What is virtual class and friend class?..

Answer / kirti joshi

friend class is used to share private data between 2 or
more classes the function declared as freind are not called
using any object it is called like normal .the arguments to
such functions is normally object of a class.
virtual class is used for run time polymorphism when object
is linked to procedure call at run time

Is This Answer Correct ?    53 Yes 7 No

What is virtual class and friend class?..

Answer / 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

What is virtual class and friend class?..

Answer / vaibhav panchal

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

Is This Answer Correct ?    27 Yes 7 No

What is virtual class and friend class?..

Answer / guest

frien class are used when two or more classes are designed
to work together and virtual base class aids in multiple
inheritance

Is This Answer Correct ?    33 Yes 17 No

What is virtual class and friend class?..

Answer / govind

A virtual class is an inner class that can be overridden by
derived classes of the outer class.buti in this virtual
class cant access the privat member data and funtion .

A friend class is can access the privat member data and
function .

Is This Answer Correct ?    14 Yes 3 No

Post New Answer

More OOPS Interview Questions

What is object in oop with example?

0 Answers  


What is polymorphism and why is it important?

0 Answers  


some one give d clear explanation for polymorphism

3 Answers  


what is new operator in c++

1 Answers  


Why interface is used?

0 Answers  


Write pseudo code for push in a stack?

2 Answers   emc2,


Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3

3 Answers   Accenture, Cognizant, IBM,


#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

1 Answers   CTS, Wipro,


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


What do you mean by Encapsulation?

0 Answers   Ittiam Systems,


Which keyword is written to use a variable declared in one class in the other class?

5 Answers   TCS,


what is static?

4 Answers  


Categories