/* Author: James Tam Version: March 1, 2021 */ public class C extends P { private int a; private int c; public C(int p1, int p2, int p3, int p4, int p5) { super(p1,p2,p3); a = p4; c = p5; } public void m1(int a, int b, int c, int d, int e) { a = a; super.b = d + e; this.c = c; super.c = c * 2; } public String toString() { String s; s = super.toString() + ", "; s = s + "a=" + a + ", " + "c=" + c; return(s); } }