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 are interfaces in c#?
What is the value which is accepted by all data types ?
How can you achieve run time polymorphism in C#?
Explain attributes in c#?
What is the task perform by clr?
What is written in c#?
how dot net compiled code will become platform independent?
What are annotations in c#?
What are the different types of constructors in c#?
What is the difference between static and private constructor in c#?
Why do we need ienumerable in c#?
Is string nullable c#?
Is c++ or c# better?
What is the use of return in c#?
Explain the difference between private and shared assembly?