public void Hello()
{
Console.WriteLine("Hello");
}
public void NiceOne()
{
Hello();
Console.WriteLine("LiceOne");
}
Is it possible to access the instance method within the same class?
c#
Access is unrestricted within the same class.
If you want to restrict, consider the access restrictors below.
© 2024 OneMinuteCode. All rights reserved.