using System; using System.Text; namespace Student { class MainClass { public static void Main (string[] args) { // Creating a Person Variable Person samir = new Person (); Person chrism = new Person (); // Printing out the first name, last name, and gpa // of the person. samir.displaySamir (); chrism.displayChrisM (); } } class Student { public String firstName; public String lastName; public Double gpa; public String classification; public String major; public Student(String firstName, String lastName, Double gpa) { this.firstName = firstName; this.lastName = lastName; this.gpa = gpa; } public Student(String classification, String major) { this.classification = major; this.major = major; } } class Person { Student samir = new Student ("Samir","Negash", 2.9); Student chrism = new Student ("Chris", "Mardini", 1.5); public void displaySamir() { Console.WriteLine ("First Name: " + samir.firstName); Console.WriteLine ("Last Name: " + samir.lastName); Console.WriteLine ("GPA: " + samir.gpa); Console.WriteLine (); } public void displayChrisM() { Console.WriteLine ("First Name: " + chrism.firstName); Console.WriteLine ("Last Name: " + chrism.lastName); Console.WriteLine ("GPA: " + chrism.gpa); Console.WriteLine (); } } }