I have a User class with private attributes like Nome
, Endereco
and Telefone
. This class has a constructor method that receives parameters like nome
, endereco
and telefone
.
I'd like to use a constructor method to change the phone parameter. That is, to change the data (phone number) that the person inserted into the textbox.
All of this is in a Windows Forms Application in C #.
I would like to know how to change this data and taking into account that the proposed exercise I received only accepts the use of object-oriented C # language (I'm starting to learn about and is to later learn about all of SQL and everything else, now it's just the basics without getting into ADO.NET or ASP.NET).