So this is one of my first classes for Object-Oriented Development and my feedback for my code was that I was missing "a property" and that GetName() is a method rather than a property. I'm currently coding in c# and was wondering if anyone could explain what a property is or point me in the right direction I'd be very appreciative.
//Instance Variables
private String name;
private decimal balance;
//Variables
public AccountDetails(String name, decimal balance)
{
this.name = name;
this.balance = balance;
}
//Accessor Methods
public String GetName()
{
return this.name;
}