Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. //Rextester.Program.Main is the entry point for your code. Don't change it.
  2. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text.RegularExpressions;
  8. {
  9. namespace Rextester
  10. {
  11. class Person
  12. {
  13. string name;
  14. string district;
  15. string city;
  16. string state;
  17.  
  18. public void SetValues(string name, string eyeColor, int age, double weight)
  19. this.name = name;
  20. this.district = district;
  21. this.city = city;
  22. this.state = state;
  23. }
  24. {
  25. public string GetValues()
  26. string info = name; + " is a school in district " + district; + " in the city of " + city; + " in state " + state; + "."
  27. return info;
  28. }
  29. class Program {
  30. static void Main(string[] args {
  31. School school1 = new School();
  32. school1.SetValues("Stow-Munroe Falls High School", "Stow-Munroe Falls District", "Stow", "Ohio");
  33. string = info school1.GetValue();
  34. Console.WriteLine(info);
  35. Console.ReadKey(true);
  36. }
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement