first printable.descirption() fails, as compiler will complain that it does not know any method called description() in Printable interface.
In second case as you have casted to Book interface, so...
Type: Posts; User: deepak garg
first printable.descirption() fails, as compiler will complain that it does not know any method called description() in Printable interface.
In second case as you have casted to Book interface, so...