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

How can you forcibly remove AD from a server, and what do you do later? • Can I get user passwords from the AD database?

2 Answers  


You work as the application developer at Certkiller .com. You are developing a debug build of an existingapplication. You want to locate a specific line of code which resulted in the exception occurring. Choose the property of the Exception class that you should use to accomplish the task.

1 Answers  


You work as the application developer at Certkiller .com. You need to modify the code of an application. The application uses two threads named thread A and thread B. You want thread B to complete executing before thread A starts executing. How will you accomplish the task?

1 Answers  


You work as the application developer at Certkiller .com. You create a new class that uses unmanaged resources, but which still has references to managed resources on other objects. You want users of the new class to be able to explicitly release resources when the class instance is no longer required. What should you do next? Choose the three actions which you should perform. Each correct answer presents only part of the complete solution.

1 Answers  


You work as the application developer at Certkiller .com. The global cache contains an assembly named Certkiller Ass10. You are busy working on an assembly named Certkiller Ass09. Certkiller Ass9 includes a public method. You want the public method to be called from only Certkiller Ass10. Choose the permission class which you should use.

1 Answers  






what is thinclient? why we use? and how to install thinclient? basic requirement?

3 Answers  


Can you abale to create user account in AD without e-mail address?

6 Answers   Emphasis, FCC,


primary & secondary storages are 2 main type of storage

2 Answers  


What is LDAP?

5 Answers   IBM,


What is Server OS? What is Domain Controler?

2 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  


which jumper lets the IDE Cable decide the configuration for IDE devices?

3 Answers   IBM,


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)