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 |
What is LDAP?
How would you find all users that have not logged on since last month?
What are the FSMO roles? Who has them by default? What happens when each one fails?
• What are sites? What are they used for? • What's the difference between a site link's schedule and interval? • What is the KCC? • What is the ISTG? Who has that role by default? • What are the requirements for installing AD on a new server? • What can you do to promote a server to DC if you're in a remote location with slow WAN link?
3 Answers ITC Infotech, Wipro,
How can I override blocking of inheritance?
What is Patch Management? Why we use. Basic requirement of installing Patch Management?
What is software deployment? how we do software deployment?
Hi can any one help me for 70-562 dumps?
What are profiles and what are they a brief description?
question related to education gap and studies i would be very thankful if u guide in creating my career.i did my degree(bachelor of computer applications)from 1999 to 2002 but passed in 2007. am unemployed till now without further qulaification. how to rebuild my career. what is the option for me to do the job. how do u guide me to build my career again so that i can gt a job. which field to select. let me please know step my step process thanks...
You work as the application developer at Certkiller .com. You are working on an application and want to use platform invoke services to call an unmanaged function from managed code. How will you accomplish the task?
What are the requirements for installing AD on a new server?