Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9. class Program
  10. {
  11. public class Person
  12. {
  13. public string name;
  14. string lastname;
  15. string patronymic;
  16. int age;
  17. int height;
  18. int weight;
  19. bool married;
  20. }
  21.  
  22. static void Main(string[] args)
  23. {
  24.  
  25. Person firstPerson;
  26.  
  27. firstPerson.name = "Name";
  28.  
  29. Console.WriteLine(firstPerson.name);
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement