Students, please be sure to log in. This site does not use cookies and cannot store work submitted when not signed in.

Unit 9 Problems

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
Copyright © StudyCS 2024 All rights reserved.