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?
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)
0
ok tnx :)