Hier ist mein Code: < /p>
Code: Select all
public class BankAccountNew(string accountID, string owner)
{
public void DoSomethingWrong()
{
accountID = "Wrong";
}
}
public class BankAccounOld
{
private readonly string accountID;
private readonly string owner;
public BankAccounOld(string accountID, string owner)
{
this.accountID = accountID;
this.owner = owner;
}
public void DoSomethingWrong()
{
accountID = "Wrong";
}
}