Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Rabbits
- {
- public class Rabbit
- {
- private Rabbit()
- {
- this.Available = true;
- }
- public Rabbit(string name, string species)
- : this()
- {
- this.Name = name;
- this.Species = species;
- }
- public string Name { get; set; }
- public string Species { get; set; }
- public bool Available { get; set; }
- public override string ToString()
- {
- return $"Rabbit ({this.Species}): {this.Name}";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement