Advertisement
damarijsilva

A

Sep 1st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ejercicio6
  7. {
  8.     public class Alumno
  9.     {
  10.         private string apellido;
  11.         private string carrera;
  12.         private int lu;
  13.         private int anioDeIngreso;
  14.  
  15.         public string Apellido
  16.         {
  17.             get { return this.apellido; }
  18.             set { this.apellido = value; }
  19.         }        
  20.  
  21.         public string Carrera
  22.         {
  23.             get { return this.carrera; }
  24.             set { this.carrera = value; }
  25.         }        
  26.  
  27.         public int Lu
  28.         {
  29.             get { return this.lu; }
  30.             set { this.lu = value; }
  31.         }        
  32.  
  33.         public int AnioDeIngreso
  34.         {
  35.             get { return this.anioDeIngreso; }
  36.             set { this.anioDeIngreso = value; }
  37.         }
  38.  
  39.         public Alumno()
  40.         {
  41.             Apellido = "";
  42.             Carrera = "";
  43.             Lu = 0;
  44.             AnioDeIngreso = 0;
  45.         }
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement