Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication32
- {
- public class Program
- {
- static void Main(string[] args)
- {
- Journal studentsBase = new Journal();
- string firstname = Console.ReadLine();
- string lastname = Console.ReadLine();
- }
- }
- class Journal
- {
- List<Student> students;
- private void Addstudent(string studentFname, string studentLname)
- {
- Student student = new Student();
- student.firstname = studentFname;
- student.lastname = studentLname;
- students.Add(student);
- }
- }
- public class Student
- {
- public string firstname;
- public string lastname;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement