-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?

0

1 Answer 1

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.

2
  • Which language are you referring to, and why do you believe that is the same language as the OP? May 23, 2017 at 22:58
  • I'm referring to c#, because I looked at the OP's profile page. I agree the answer is not universal.
    – John Wu
    May 23, 2017 at 23:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.