How can I override blocking of inheritance?



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

Post New Answer

More Microsoft Certifications Interview Questions

Name some GPO settings in the computer and user parts.

1 Answers  


I am an employee in one company. I need to do asp.net certification. I am new to this technology and also i am studying it from one month. So please guide me how i can proceed for doing my certification.

0 Answers  


What are the Support Tools? Why do I need them?

2 Answers  


hi im raghu im 26 yrs old can i take exams on mcse for windows server 2003 now instead of windows server 2008

3 Answers  


friend i have some question plz help me out 1 how hash function works on router 2 what is diffrence between broad cast doman and collison doman 3 what is the difference between L3 Switch and Router, If they Perform the same function why we need both of them?

1 Answers   TCS,






Difference between Web Hosting, Web Space and Domain Hosing?

5 Answers  


Anyone send me list of latest Microsoft certifications and where the dumps available for practice purpose

3 Answers  


You work as the application developer at Certkiller .com. You are developing a new application named Certkiller App12. Certkiller App12 must be configured to receive events asynchronously. You define two instances named Wq1EventQuery and ManagementEventWatcher respectively. Wq1EventQuery will list those events and event conditions for which Certkiller App12 should respond. ManagementEventWatcher will subscribe to all events matching the query. Which two additional actions should you still perform to enable Certkiller App12 to receive events asynchronously? Choose two correct answers. Each answer presents only part of the complete solution.

1 Answers  


What is the ISTG? Who has that role by default?

1 Answers  


i want to give exchange server 284 paper plse send me latest 284 paper dumps i will download

1 Answers   IBM,


What are GPOs?

1 Answers  


Why to make DNS server? If a Client accessing the internet have or not connected with DNS server.

5 Answers   TCS,


Categories
  • Cisco Certifications Interview Questions Cisco Certifications (2321)
  • Microsoft Certifications Interview Questions Microsoft Certifications (171)
  • Sun Certifications Interview Questions Sun Certifications (45)
  • CISA Certification Interview Questions CISA Certification (744)
  • Oracle Certifications Interview Questions Oracle Certifications (64)
  • ISTQB Certification Interview Questions ISTQB Certification (109)
  • Certifications AllOther Interview Questions Certifications AllOther (295)