Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Car
- {
- private string model;
- private double kg;
- private string color;
- private string modelID;
- public String Model
- {
- set { this.model = value; }
- get { return this.model; }
- }
- public Double Kg
- {
- set { this.kg = value; }
- get { return this.kg; }
- }
- public String Color
- {
- set { this.color = value; }
- get { return this.color; }
- }
- public String ModelID
- {
- set { this.modelID = value; }
- get { return this.modelID; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement