// ===++===
//
// OrtizOL
//
// ===--===
/*============================================================
//
// Clase: MOdificadorAccesopublic.cs
//
// Propósito: Demostrar el uso del modificador de acceso
// public.
//
============================================================*/
using System;
class Punto
{
public int x;
public int y;
}
class PruebaPublic
{
public static void Main()
{
Punto p = new Punto();
// Acceso directo a los campos de instancia
p.x = 13;
p.y = 17;
// Impresión de los valores de los campos
Console.WriteLine ("P({0}, {1})", p.x, p.y);
}
}
Ly8gPT09Kys9PT0KLy8KLy8gICAgT3J0aXpPTAovLwovLyA9PT0tLT09PQovKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQovLwovLyBDbGFzZTogTU9kaWZpY2Fkb3JBY2Nlc29wdWJsaWMuY3MKLy8KLy8gUHJvcMOzc2l0bzogRGVtb3N0cmFyIGVsIHVzbyBkZWwgbW9kaWZpY2Fkb3IgZGUgYWNjZXNvIAovLyBwdWJsaWMuCi8vCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSovCgp1c2luZyBTeXN0ZW07CgpjbGFzcyBQdW50bwp7CiAgICBwdWJsaWMgaW50IHg7CiAgICBwdWJsaWMgaW50IHk7Cn0KCmNsYXNzIFBydWViYVB1YmxpYwp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICB7CiAgICAgICAgUHVudG8gcCA9IG5ldyBQdW50bygpOwogICAgICAgIAogICAgICAgIC8vIEFjY2VzbyBkaXJlY3RvIGEgbG9zIGNhbXBvcyBkZSBpbnN0YW5jaWEKICAgICAgICBwLnggPSAxMzsKICAgICAgICBwLnkgPSAxNzsKICAgICAgICAKICAgICAgICAvLyBJbXByZXNpw7NuIGRlIGxvcyB2YWxvcmVzIGRlIGxvcyBjYW1wb3MKICAgICAgICBDb25zb2xlLldyaXRlTGluZSAoIlAoezB9LCB7MX0pIiwgcC54LCBwLnkpOwogICAgfQp9