Nativebyte interview question

Java OOP concepts