How Prevent methods in an interface ?Sanal Rajan8yAsked May 22, 2018, 12:32 AM1.1kVisual Basic .NETHow to prevent method ONE() from class B and method Two() from class A?
Ravi Kiran Chanduri8y agoPosted May 22, 2018, 5:10 AMHello Sanal Rajan, The direct answer to your question is "Not Possible". When you are inheriting an interface, you should write the definition to all the methods. But to satisfy your requirement you can make use of abstract class in between to make required columns only to be derivable.
Nitin Sontakke8y agoPosted May 22, 2018, 12:47 AMYou cannot. When you implement an interface, you will need to implement it fully. If you cannot, define two different interfaces. Once the concept of interface is clear to you, such question will not even arise in your mind.
Ravi Kiran ChanduriPosted May 22, 2018, 5:10 AM
Nitin SontakkePosted May 22, 2018, 12:47 AM