ExtendedContactInfo
Given the two classes below where ExtendedContactInfo
is a child of ContactInfo
, complete the constructor so that one can create an ExtendedContactInfo
object with a given nickname, name, and phone number.
Example Creation
ExtendedContactInfo object: ExtendedContactInfo alex = new ExtendedContactInfo("A", "Alex", "123-123-1234");System.out.println(alex.getNickName()); //prints "A"
System.out.println(alex.getPhoneNumber()); //prints "123-123-1234"
System.out.println(alex.getName()); //prints "Alex"
Type your solution
Skills Practiced:
3.B
4.A
4.B
1.C
Saved
Saved