In this program, we are implementing the concept of Interface using class. Here, Class Shape worked as Interface. In Interface all methods must be non-implemented it must be implemented in child class unlike abstract class, where we can have some implemented members.
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer