SHARE
TWEET

Untitled

AnonyMute Feb 28th, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace classstudent1
  8. {
  9.     class StudentDetails
  10.     {
  11.         Student st = new Student{"Eric Jhun", "Sanchez", "BSIT", "Programming", "MINSCAT BONGABONG CAMPUS", "ericjhun", "2019-0053"};
  12.  
  13.         public void displayOutput()
  14.         {
  15.             Console.WriteLine("{0} {1} is a BSIT Student", st.FirstName, st.LastName, st.Student);
  16.             Console.WriteLine("{0} {1} He choose a Programming Course", st.FirstName, st.LastName, st.Course);
  17.             Console.WriteLine("{0} {1} He studying in MINSCAT BONGABONG CAMPUS", st.FirstName, st.LastName, st.University);
  18.             Console.WriteLine("{0} {1}'s E-mail is ericjhun", st.FirstName, st.LastName, st.Email);
  19.             Console.WriteLine("{0} {1}'s ID is 2019-0053", st.FirstName, st.LastName, st.ID);
  20.     }
  21.     }
  22. }
  23.  
  24.  
  25. using System;
  26. using System.Collections.Generic;
  27. using System.Linq;
  28. using System.Text;
  29. using System.Threading.Tasks;
  30.  
  31. namespace classstudent1
  32. {
  33.     class Student
  34.     {
  35.         public Student(string firstName, string lastName, string course, string subject, string university, string email, int id)
  36.         {
  37.             FirstName = firstName;
  38.             LastName = lastName;
  39.             Course = course;
  40.             Subject = subject;
  41.             University = university;
  42.             Email = email;
  43.             ID = id;
  44.         }
  45.         public string FirstName { get; set; }
  46.         public string LastName { get; set; }
  47.         public string Course { get; set; }
  48.         public string Subject { get; set; }
  49.         public string University { get; set; }
  50.         public string Email { get; set; }
  51.         public int ID { get; set; }
  52.     }
  53. }
  54.  
  55.  
  56.  
  57.  
  58.  
  59. using System;
  60. using System.Collections.Generic;
  61. using System.Linq;
  62. using System.Text;
  63. using System.Threading.Tasks;
  64.  
  65. namespace classstudent1
  66. {
  67.     class Program
  68.     {
  69.         static void Main(string[] args)
  70.         {
  71.             Student st = new Student();
  72.             st.displayOutput();
  73.             {
  74.                 StudentDetails sd = new StudentDetails();
  75.                 sd.displayOutput();
  76.             }
  77.         }
  78.     }
  79. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top