How can I override blocking of inheritance?
Answer / maniprakash snstech at covai y
if you want to override the block of method form base class
you must use the method in base class as virtual and use the
method in sub class in override..
like an example:
class A //base class
{
public virtual void add()
{
// some operations...
}
}
class B : A //derived class from base class
{
public override void add()
{
//
}
}
If you call the method add() it should execute the derived
class method only not execute the base class add() method..
base class add() was blocked or hidden..
| Is This Answer Correct ? | 3 Yes | 2 No |
where are logical drives created on hard disk ?
Which is best among dotnet and dotnet diploma? Friends Please answer this question as soon as possible.
Hi, I am gayathri.Could anyone of u who see this question plz answer and help me in this regard.I want to do .NET certification...I want to know the centres which offers this certification.
What is Patch Management? Why we use. Basic requirement of installing Patch Management?
Trying to look at the Schema, how can I do that?
What is forest?
What is the function of Domain Partition?
what is the difference between MCP,MCSA and MCSE a brief description?
what is the meaning of workgroup?
What's the difference between transferring a FSMO role and seizing one? Which one should you NOT seize? Why?
What is Web Space? Where we use Web Space?
how to take back up in laptop when windows is crashed