0

I want, when the user finish to type his infos on myOwn_ID to secure the data so no one can change it, how to make it ?

https://code.sololearn.com/cuMQlZw8ZdPV/?ref=app

30th Nov 2019, 2:19 AM
Amadou NDIAYE
Amadou NDIAYE - avatar
7 ответов
0
In the main i put "Luc" as Name but the former name is delete and replaced by "Luc". When i want to put another name i want the programm to tell me thats there is already another name in myOwn_ID.(namesection) and ask the user if we want to change the name or keep it Help :)
30th Nov 2019, 2:22 AM
Amadou NDIAYE
Amadou NDIAYE - avatar
0
Thanks mate, i was wrong in the getter method, and i wasnt typing to correct variable to return ! Is it good now ? Avinesh
30th Nov 2019, 2:55 AM
Amadou NDIAYE
Amadou NDIAYE - avatar
30th Nov 2019, 3:04 AM
Avinesh
Avinesh - avatar
0
Avinesh can you remind me please the way to take ID infos for more than 1 person, i dont see your first comment
30th Nov 2019, 3:33 AM
Amadou NDIAYE
Amadou NDIAYE - avatar
0
Amadou Bassirou NDIAYE do you want to show details for more people?
30th Nov 2019, 3:35 AM
Avinesh
Avinesh - avatar
0
After asking the user to set his infos, I tried in the main to Set a Name by initializating it by using myOwn_ID.setName("John") and when i display it, it deletes the former name that the user put and put "John". I want my programm to tell me that there is already a name on myOwn_ID.setName() and i have to type another ID infos Tell me if i wasnt clear, my english is not that good
30th Nov 2019, 3:40 AM
Amadou NDIAYE
Amadou NDIAYE - avatar
30th Nov 2019, 4:10 AM
Avinesh
Avinesh - avatar