Created
August 31, 2014 15:43
-
-
Save Fhernd/f636900a501289597616 to your computer and use it in GitHub Desktop.
Implementa en C# la clase abstracta Persona.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Articulos.Preguntas.P0420 | |
{ | |
public abstract class Persona | |
{ | |
private String nombre; | |
public String Nombre | |
{ | |
get | |
{ | |
return nombre; | |
} | |
set | |
{ | |
nombre = value; | |
} | |
} | |
// Declaración del constructor de la clase | |
// base `Persona`: | |
public Persona(string nombrePersona) | |
{ | |
nombre = nombrePersona; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment