Common Java Program for Interface, Polymorphism
Common Java Program for Interface, Polymorphism
You can write this program in all concepts of unit 3.1 and 3.2
// Define an interface
interface Animal {
// Abstract class
// Constructor
LivingBeing() {
void breathe() {
Dog() {
@Override
void breathe() {
@Override
void eat() {