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 have a non static member function in a base class to
be override in derived with static modifier?

Answer Posted / srinivas

sorry i have given the reverse once . Even the reverse
works fine..

class sample
{
public:
static void get(){cout<<"this is base class
function:"<<endl;}
void put(){cout<<"this is a put function of base
class :"<<endl;}
};
class sample1:public sample
{
public:
static void put(){cout<<"this is a derived class
function:"<<endl;}
};

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the namespcae generally given to the webpage of the .NET Framework ?

1067


What is string class in c#?

892


How do you escape c#?

898


Explain about Threading Types.

1072


What is value c#?

834


What are the main reasons to use c# language?

957


What is data adapter in c#?

884


What is the difference between dynamic type variables and object type variables in c#?

885


What do you know about WM_CHAR message?

988


What is a generic in c#?

927


What is difference between abstract class and interface in c#?

952


Explain about Error handling and how this is done

952


What are the advantages of constructor?

859


Can u list some style properties of List Box?

934


What is difference between var dynamic and object in c#?

944