Advertisement
Gillito

Untitled

Jun 4th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication32
  8. {
  9.     public class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Journal studentsBase = new Journal();
  14.             string firstname = Console.ReadLine();
  15.             string lastname = Console.ReadLine();
  16.             studentsBase.students
  17.         }
  18.     }
  19.  
  20.     class Journal
  21.     {
  22.         public List<Student> students = new List<Student>();
  23.  
  24.         public void Addstudent(string studentFname, string studentLname)
  25.         {
  26.             Student student = new Student();
  27.  
  28.             student.firstname = studentFname;
  29.             student.lastname = studentLname;
  30.             students.Add(student);
  31.         }
  32.     }
  33.  
  34.     public class Student
  35.     {
  36.        public string firstname;
  37.        public string lastname;
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement