Pergunta de entrevista da empresa Workday

Please go up to the white board and write an example of a java class with some methods and variables.

Resposta da entrevista

Sigiloso

12 de nov. de 2012

It should be some attributes and methods (we call that attributes in Java precisely) Use a UML diagram: Class: Animal Attributes: private int weight (in kilograms) private int height (in centimeters) Methods: int getWeight() int getHeight() double getBMI() // BMI calculates whether the animal is too fat or too thin .....

1