Domanda di colloquio di SAP

How can define a class of rectangle with different data types?