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

when to use 'mutable' keyword and when to use 'const cast' in c++

2218


How long to learn object oriented programming?

1140


What are the three main types of variables?

1176


Explain the advantages of inheritance.

1190


What is and I oop mean?

1275


What does it mean when someone says I oop?

1121


explain sub-type and sub class? atleast u have differ it into 4 points?

2358


What is encapsulation process?

1099


What is property in oops?

1130


What is encapsulation and abstraction? How are they implemented in C++?

1184


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2446


What are objects in oop?

1151


What is the benefit of oop?

1101


Why do we use oop?

1164


What is a function in oop?

1135