Workday interview question

Asked some very basic OOP concepts.