using System; using System.Collections.Generic; using System.Text; namespace Parilus1 { class Inimene { protected int vanus; protected int pikkus; protected int mass; public Inimene(int uvanus, int upikkus, int umass) { vanus = uvanus; pikkus = upikkus; mass = umass; } public Inimene(int uvanus):this(uvanus, -1, -1) { } public int GetVanus() { return vanus; } public void YtleVanus() { Console.WriteLine("Minu vanus on " + vanus + " aastat"); } public string FiguuriHinnang() { if (pikkus - mass >= 100) { return "pikk"; } else { return "paks"; } } } }