coding
Code 31
Write an interface AnimalContract with one abstract method hi() and one default method sayHi(). Implement AnimalContract with class AnimalImpl. Make hi() call the default implementation of sayHi(). sayHi() should print “hi”.
Write an interface AnimalContract with one abstract method hi() and one default method sayHi(). Implement AnimalContract with class AnimalImpl. Make hi() call the default implementation of sayHi(). sayHi() should print “hi”.