why we use constructor with parameters to initialize values
I'm a bit confused about the use of getter/setters and constructors.why we use constructor with parameters to initialize values.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Mar 29, 2016, 12:49 PM
var person = new Person("Afzaal Ahmad Zeeshan", 20);public Person(string name, int age) {Name = name;
Age = age;
}