class Sample { void name() { System.out.println("I am Sai"); } } class Task19 extends Sample { void name() { super.name(); System.out.println("This is Siva"); } public static void main(String[] args) { Task19 t=new Task19(); t.name(); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter