Advertisement
Fhernd

Persona.cs

Aug 9th, 2017
14,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace cap07.usoienumerator
  4. {
  5.     public class Persona
  6.     {
  7.         private string nombre;
  8.         private string apellido;
  9.  
  10.         public Persona(string nombre, string apellido)
  11.         {
  12.             this.nombre = nombre;
  13.             this.apellido = apellido;
  14.         }
  15.  
  16.         public String Nombre
  17.         {
  18.             get
  19.             {
  20.                 return nombre;
  21.             }
  22.         }
  23.  
  24.         public String Apellido
  25.         {
  26.             get
  27.             {
  28.                 return apellido;
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement