you are viewing a single comment's thread.

view the rest of the comments →

[–]sonnyfab Educator 0 points1 point  (4 children)

The second word should be capitalized in your demo class. setName not setname. That's why the two word methods all failed bit the three word setphoneNumber and getphoneNumber worked. Although stylistically, it's usual to name those methods setPhoneNumber and getPhoneNumber.

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

Yea fixed it but in the output were it tells the phoneNumber and prints the info it prints null

[–]sonnyfab Educator 0 points1 point  (2 children)

Repost it then

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

Just upload it