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 a ienumerator?

910


Is lazy thread safe c#?

859


What is the difference between asp net and c#?

898


What is the purpose of the integer parse method the decimal parse method?

1080


What are the collections in c#?

881


Describe a Struct ?

1023


What are the advantages of generics in c#?

892


What is the difference between disposing of () and finalize() methods in c#?

991


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

943


How does dictionary work in c#?

861


Does c# provide copy constructor?

990


What is the use of partial methods?

1041


List some Advantages of switch-case over if else?

912


What is a console operator?

889


What is data adapter in c#?

865