Pergunta de entrevista da empresa Lutron Electronics

There's a public Rectangle class, which has private fields of height (int), width (int), position (Point), color (Color). It has a constructor that takes as arguments the info necessary for the fields above. However, there's no way to see or edit the fields. How would you implement it?

Resposta da entrevista

Sigiloso

10 de mar. de 2011

Set and get methods. (Mention what arguments the methods take and what should be returned).

1