Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created August 31, 2014 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/f636900a501289597616 to your computer and use it in GitHub Desktop.
Save Fhernd/f636900a501289597616 to your computer and use it in GitHub Desktop.
Implementa en C# la clase abstracta Persona.
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