- 1 Write The Output Of These Code Block Without Running 1 Class Person Public Person System Out Println Hi 1 (30.06 KiB) Viewed 31 times
1. Write the output of these code block without running (1) class Person{ public Person () { System.out.println("hi!");
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write the output of these code block without running (1) class Person{ public Person () { System.out.println("hi!");
1. Write the output of these code block without running (1) class Person{ public Person () { System.out.println("hi!"); } public Person (String s) { this(); System.out.println("I am "+s); } } public class Who extends Person { public Who () { this ("I am Tony"); } public Who (String s) { super (s); System.out.println("How do you do?"); } public static void main(String args[]) { Who w = new Who (); }