// Start is called before the first frame update void Start() { octavian = new Human_Class("Octavian Gheorghiu", 1.74f); tyson = new Human_Class("Tyson Hosmer", 1.82f); phil = new Human_Class("Phil", 1.75f); octavianCyborg = new Cyborg("CyOc", 1.74f); }
void Start() { superman = new Human_Class("superman", 1.88f); batman = new Human_Class("batman", 1.89f); aquarman = new Human_Class("aquarman", 1.90f); supermanCyborg = new Cyborg("Cy0c", 1.74f); }
// Start is called before the first frame update void Start() { Saee = new Human_Class("Saee", "London", 24, 5.2f); Vaish = new Human_Class("Vaish", "Mumbai", 24, 5.6f); Suyash = new Human_Class("Suyash", "Bangalore", 24, 5.9f); string[] statement = { "The name of the candidate is:", "Their current place of residence is:", "The age of the candidate is:", "The height is:" }; Debug.Log(statement[0] + Saee.GetfirstName()); Debug.Log(statement[1] + Saee.GetplaceOfResidence()); Saee.Walking(); Debug.Log(statement[0] + Vaish.GetfirstName()); Debug.Log(statement[3] + Vaish.Getheight()); Vaish.Siting(); Debug.Log(statement[0] + Suyash.GetfirstName()); Debug.Log(statement[1] + Suyash.GetplaceOfResidence()); Debug.Log(statement[2] + Suyash.Getage()); Suyash.Hungry(); }