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