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 a ienumerator?
Is lazy thread safe c#?
What is the difference between asp net and c#?
What is the purpose of the integer parse method the decimal parse method?
What are the collections in c#?
Describe a Struct ?
What are the advantages of generics in c#?
What is the difference between disposing of () and finalize() methods in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
How does dictionary work in c#?
Does c# provide copy constructor?
What is the use of partial methods?
List some Advantages of switch-case over if else?
What is a console operator?
What is data adapter in c#?