Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 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 po_es_12
  8. {
  9. class Automobili
  10. {
  11. public string targa { get; set; }
  12. public string data { get; set; }
  13. //public string ora { get; set; }
  14.  
  15. public Automobili(string t, string d)
  16. {
  17. targa = t;
  18. data = d;
  19. // ora = o;
  20. }
  21.  
  22. public void InfoAuto()
  23. {
  24. Console.WriteLine("Targa: {0}\nData e ora: {1}", targa, data);
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement