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

How many types of namespaces available in version4?

902


What is winforms c#?

944


What is the default value of decimal in c#?

882


What is a delegate how is it type safe?

828


How can encapsulation be achieved?

1069


What is deferred execution?

850


Which control cannot be placed in mdi?

945


How does substring work in c#?

934


What is a int in c#?

853


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

921


What is oledbconnection c#?

878


What is the difference between the debug class and trace class? Documentation looks the same.

1083


What is difference between string and stringbuffer in c#?

911


What is int32 in c#?

840


Define sealed classes in c#?

888