3 ms·
Why would one define private methods on interfaces? Is it intended to be depended by abstract classes?
by egeozcan 10y ago
Why would one define private methods on interfaces? Is it intended to be depended by abstract classes?
- aardvark179 10y agoIf you can define private methods on an interface then you can refactor common code out of default methods on that interface without exposing it to any other class.
- egeozcan 10y agoAh, that makes sense. Thank you.