{
Console.WriteLine("X = {0}, Y = {1}", X, Y);
}
}
Here, we have defined our two integer data types (X and Y) using the public keyword, which is
an access control modifier (full details in the next chapter). Declaring
data with the public keyword
ensures the caller has direct access to the data from a given Point variable (via the dot operator).
Do'stlaringiz bilan baham: