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
Explain about Threading Types.
What is the size of a decimal?
What are value types and reference types?
Explain the difference between a sub and a function in c#.
In C#, explain the difference between overloading and overriding.
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is ilist c#?
What is .net c#?
i want the csharp questions&answeres
2. What happened when BO object has been called?
What is the value which is accepted by all data types ?
What is hash c#?
Which .gang of four. Design pattern is shown below?
What is c# entity framework?
How to install or uninstall a windows service?