A simple demonstration of OOP styles.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Level.cs 409B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. namespace ParkingLot
  3. {
  4. public class Level
  5. {
  6. private List<Row> rows;
  7. public List<Row> Rows
  8. {
  9. get { return rows; }
  10. set { rows = value; }
  11. }
  12. public Level()
  13. {
  14. SetDefaults();
  15. }
  16. public void SetDefaults()
  17. {
  18. Rows = new List<Row>();
  19. }
  20. }
  21. }