Is a good practice to initialize private data members from within ctor by calling the associated pro
- by yuko.aihara
interface IAnimal
{
string Name { get; set; }
}
class Dog : IAnimal
{
private string name;
public Dog(string name)
{
Name = name;
}
public string Name
{
get { return name; }
set { name = value; }
}
}