Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Parking
- {
- public class Car
- {
- public string Manufacturer { get; set; }
- public string Model { get; set; }
- public int Year { get; set; }
- public Car(string Manufacturer,string Model , int Year)
- {
- this.Manufacturer = Manufacturer;
- this.Model = Model;
- this.Year = Year;
- }
- public override string ToString()
- {
- return $"{Manufacturer} {Model} ({Year})";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement