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.

Row.cs 421B

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