I'm new to Programming! Ignore if it a silly question. But leave a comment.
Is it possible to declare an access specifier to object instances in C#? OR is there any default specifiers for that ?
class Person
{
public int age;
}
class Program
{
static void Square(Person a, Person b) // Here note down "a" and "b" are instances
{
a.age = a.age * a.age;
b.age = b.age * b.age;
Console.WriteLine(a.age+" "+b.age);
}
}