0

What is the difference between the Class inheritance and Interface inheritance? What of the above yields a lower coupling and a higher cohesion..

Marine
  • 1
  • 3

1 Answers1

0

Class inheritance is more of a is a, so Square is a Shape whereas Interface is more of has the ability of, so Square has the ability of Resizable. But as you say you can couple multiple abilities using interface inheritance.

Kevin Smith
  • 13,746
  • 4
  • 52
  • 77