NPTEL JAVA WEEK 02 ASSIGNMENT SOLUTION

WEEK 02 SOLUTIONS WITH PROOF OF COMPILATION. QUESTION NO 1= C all the method print() of class Student first and then call print() method of class School? ANSWER NO 1 = // Create an object of class Student Student stu = new Student(); // Call 'print()' method of class Student stu.print(); // Create an object of class School School sch = new School(); // Call 'print()' method of class School sch.print(); PROOF=