Advertisement
Fhernd

Persona.cs

Aug 31st, 2014
2,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Articulos.Preguntas.P0420
  4. {
  5.     public abstract class Persona
  6.     {
  7.         private String nombre;
  8.        
  9.         public String Nombre
  10.         {
  11.             get
  12.             {
  13.                 return nombre;
  14.             }
  15.             set
  16.             {
  17.                 nombre = value;
  18.             }
  19.         }
  20.        
  21.         // Declaración del constructor de la clase
  22.         // base `Persona`:
  23.         public Persona(string nombrePersona)
  24.         {
  25.             nombre = nombrePersona;
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement