Skip to main content
Tweeted twitter.com/StackProgrammer/status/780254642559152128
edited title
Link
Doc Brown
  • 220.5k
  • 35
  • 410
  • 625

When and why would you extract an abstractput a new method frominto an interface instead of an abstract base class to an interface?

I've never heard of an 'abstrat' class.. Fixed with abstract.
Source Link

I have been asked the following question in an interview the question: "What is the need of an interface when you can have an abstract method inwithin an abstratabstract class?" which Which I did not know the answer to.

Could you provide an example why and when it may be useful?

I have been asked in an interview the question: "What is the need of an interface when you have an abstract method in an abstrat class?" which I did not know the answer to.

Could you provide an example why and when it may be useful?

I have been asked the following question in an interview: "What is the need of an interface when you can have an abstract method within an abstract class?" Which I did not know the answer to.

Could you provide an example why and when it may be useful?

C sharp interview question problem When and why would you extract an abstract method from an abstract class to an interface?

I am facing below questionhave been asked in everyan interview. What the question: "What is the need of an interface if Iwhen you have an abstract method in abstractan abstrat class?" which I did not know the answer to.

Could you provide an example why and when it may be useful?

C sharp interview question problem

I am facing below question in every interview. What is need of interface if I have abstract method in abstract class?

When and why would you extract an abstract method from an abstract class to an interface?

I have been asked in an interview the question: "What is the need of an interface when you have an abstract method in an abstrat class?" which I did not know the answer to.

Could you provide an example why and when it may be useful?

personal stuff cleanup
Source Link
gnat
  • 20.5k
  • 29
  • 117
  • 310
Loading
Source Link
Anand
  • 49
  • 1
Loading