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 are interfaces in c#?

895


What is the value which is accepted by all data types ?

946


How can you achieve run time polymorphism in C#?

966


Explain attributes in c#?

793


What is the task perform by clr?

974


What is written in c#?

943


how dot net compiled code will become platform independent?

896


What are annotations in c#?

874


What are the different types of constructors in c#?

1085


What is the difference between static and private constructor in c#?

949


Why do we need ienumerable in c#?

857


Is string nullable c#?

929


Is c++ or c# better?

889


What is the use of return in c#?

887


Explain the difference between private and shared assembly?

828