Unformatted text preview: none can define the calculation of area. Q6. The interface enables a class to extend its behavior without affecting its own inheritance hierarchy. Besides, the interface defines a contract between server (who provides the service) and client (who use the service). Dependency can be reduced (decoupling) and implementation details can be hidden from users....
View Full Document
- Spring '10
- Object-Oriented Programming, abstract class Shape, partially filled template