-7

If I define an abstract class with abstract members and without any Generalization is a well design in Object Oriented Design?Can I Replace it with an interface?

M.Azad
  • 87
  • 2

1 Answers1

0

Not mentioned in the linked answers... an interface can have only public methods and properties, while an abstract class can define public and protected properties, methods, and fields. So if your abstract class has any of those, no, you cannot replace it with an interface.

John Wu
  • 26,032
  • 10
  • 63
  • 84
  • Which language are you referring to, and why do you believe that is the same language as the OP? – Philip Kendall May 23 '17 at 22:58
  • I'm referring to c#, because I looked at the [OP's profile page](https://softwareengineering.stackexchange.com/users/40559/m-azad). I agree the answer is not universal. – John Wu May 23 '17 at 23:12