Question: interface Exportable { void export ( ) ;class Tool implements Exportable { public void export ( ) fSystem. out. println ( Tool: :export )

interface Exportable {void export () ;class Tool implements Exportable {public void export () fSystem. out. println ("Tool: :export");// line n1class ReportIool extends Tool {void export () tSystem. out. println ("RTool: :export") ;// line n2public static void main(String[] args){Tool aTool = new ReportIool ();Tool bTool = new Tool();callExport (aTool) ;callExport (bTool) ;public static void callExport (Exportable ex){ex. export ();What is the result?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!