Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Christmas
- {
- public class Present
- {
- public Present(string name, double weight, string gender)
- {
- this.Name = name;
- this.Weight = weight;
- this.Gender = gender;
- }
- public string Name { get; set; }
- public double Weight { get; set; }
- public string Gender { get; set; }
- public override string ToString()
- {
- return $"Present {this.Name} ({this.Weight}) for a {this.Gender}";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement