Java Programming Tutorial 64 - Create a Setter

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

woah, , very nice and plain explanation.. i got it easily

nailbin
Автор

in the setter method, if i write fn = firstName, it gives error. but if i write firstName = fn, it shows the right result. whats the difference?

ishitabhattacharyya
Автор

Hey what if I want to pass two parameters for my getter and setter? Say like get(firstName) will give me first name and get(lastName) will give me lastname? same with setter, set(firstName, "Caleb") and set (lastName, "Curry")?

yaqiongli
Автор

i don't belive you. Forgot to set the privacy of lastName to Private, so is a prank !

andreibada