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
What is the namespcae generally given to the webpage of the .NET Framework ?
What is string class in c#?
How do you escape c#?
Explain about Threading Types.
What is value c#?
What are the main reasons to use c# language?
What is data adapter in c#?
What is the difference between dynamic type variables and object type variables in c#?
What do you know about WM_CHAR message?
What is a generic in c#?
What is difference between abstract class and interface in c#?
Explain about Error handling and how this is done
What are the advantages of constructor?
Can u list some style properties of List Box?
What is difference between var dynamic and object in c#?