0

Can i create new instance of a class via input?

Example:I want to create bank system.Every user will have name,id and balance..and i understand that..but the problem is that i want give acces to the bank manager to create new useres via some kind of input.Is it possible?Is there some other solution?

6th May 2017, 10:24 PM
Leonida17st
Leonida17st - avatar
2 Respostas
+ 2
Make a customer class and define the constructor with these 3 fields, then intialize like this customer_id =input() name=input() balance=input() customer = new Customer(customer_id, name, balance)
7th May 2017, 2:23 AM
xCalifier
xCalifier - avatar
0
ok tnx :)
7th May 2017, 7:28 AM
Leonida17st
Leonida17st - avatar