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

What is the difference between joining and blending in Tableau?

1 Answers  


What FSMO placement considerations do you know of?

1 Answers  


tell the function of Source record of DNS server. why we create Stub zone? Tell Round Robing also?

0 Answers  


what is the procedure to make a system stable if it is being repeatedly restart now and then saying RPC service failure?

1 Answers  


How do you configure a "stand-by operation master" for any of the roles?

1 Answers  


How to solve problem of Blank screen in laptop within 5 minutes. everything is running fine in my laptop but screen is blank even i remove RAM & Insert again in RAM slot & also try to battery same as but problem is as it is Plz give me answer if you know

3 Answers   HP,


What is Domain Hosting?

2 Answers  


i want mcp 290 latest dumps and ccna dumps plse help me can tell me website i will download dump plse give reply

4 Answers   3G Cell Labs, HCL, HP, TCS, Vcustomer, Wipro,


What is application server and Web server? Difference between Application server and Web Server? give example of both?

2 Answers   Accenture,


What is forest?

5 Answers  


hi my name is raghu im a fresher for this mcse n i wud like to take on the mcse 2008 what are the exams i have to take to become mcse on windows 2008 server

0 Answers  


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

3 Answers  


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)