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

What is the use of oops?

994


What is abstraction in oops with example?

1217


What is abstract class in oops?

974


What is the difference between abstraction and polymorphism?

1048


which feature are not hold visual basic of oop?

2148


What are the three parts of a simple empty class?

1980


State what is encapsulation and friend function?

1190


What is polymorphism programming?

1071


Can abstract class have normal methods?

992


2. Give the different notations for the class.\

2082


Why is object oriented programming so hard?

1025


Why is static class not inherited?

1042


What are the components of marker interface?

997


Where is pseudocode used?

1029


What are the two different types of polymorphism?

1086