task for deep class learning
- overload indexing operator for newly created class according to option;
- Optional validation can be performed without generating exceptional situations;
- define the type conversion operator for the class according to the variant;
- a function that displays some shortened object information, to define as virtual. Implement a test case to predict:
- demonstration of the work of the object of the new class and all newly created functions. Demonstrate the operation of virtual functions to be obvious the virtual mechanism was activated.