Royal Cyber Inc. interview question

Java ooops concepts