Study Guides (248,527)
Canada (121,610)
York University (10,209)
ITEC 2610 (16)
Midterm

midterm.docx

6 Pages
655 Views
Unlock Document

Department
Information Technology
Course
ITEC 2610
Professor
Radu Campeanu
Semester
Summer

Description
If we run class TestQ2, what is the output of the following program ? Note: you have to show the exact lines of the output in the space left after the program public class TestQ2 { public static void main(String args[]) { Parent p = new Parent(); Child c = new Child("Jerry", 100); System.out.println("---- Testing Start ----"); c.bigJob(p); c.bigJob(c); } } class Parent { protected String name; public Parent(String name) { this.name = name; System.out.println("New " + name + " done."); } public Parent() { name="Unknown"; System.out.println("New " + name + " done."); } public void smallJob(Parent p) { System.out.println("SJB "
More Less

Related notes for ITEC 2610

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit