OOAP_Homework06_2
Implementation of class Component in console