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 call a base class method without creating instance?

Answer Posted / sanjay makwana, puna

e.g. class X
{
int x;
X()
{
cout << "X";
}
public :
static void fun()
{
cout << "fun";
}
};

you may called like
X::fun();

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is static class not inherited?

1064


What is polymorphism used for?

1033


What is object and example?

1140


What is encapsulation oop?

1006


What is ambiguity in inheritance?

1071


What is oops and why we use oops?

1008


What is a null tree?

1097


What are the two different types of polymorphism?

1101


What do you mean by overloading?

1040


What is abstraction in oop?

1097


What is the difference between encapsulation and polymorphism?

1064


What causes polymorphism?

1084


What are the 3 principles of oop?

1070


What is polymorphism oop?

1025


What are the data types in oop?

1064