Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rextester.Program.Main is the entry point for your code. Don't change it.
- //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- {
- namespace Rextester
- {
- class Person
- {
- string name;
- string district;
- string city;
- string state;
- public void SetValues(string name, string eyeColor, int age, double weight)
- this.name = name;
- this.district = district;
- this.city = city;
- this.state = state;
- }
- {
- public string GetValues()
- string info = name; + " is a school in district " + district; + " in the city of " + city; + " in state " + state; + "."
- return info;
- }
- class Program {
- static void Main(string[] args {
- School school1 = new School();
- school1.SetValues("Stow-Munroe Falls High School", "Stow-Munroe Falls District", "Stow", "Ohio");
- string = info school1.GetValue();
- Console.WriteLine(info);
- Console.ReadKey(true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement