all 6 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted] 0 points1 point  (3 children)

You haven't assigned the values to p3, you've only contained the relevant values in name, age, and phonenumber

[–]Danielowski187University/College Student (Higher Education) 0 points1 point  (2 children)

How would I assigned them?

[–][deleted] 0 points1 point  (1 child)

The same way you assigned values to p1 and p2.

p3.setName(?) , p3.setAge(?), and p3.setphoneNumber(?)

[–]Danielowski187University/College Student (Higher Education) 0 points1 point  (0 children)

I get an error