IBM interview question

java - basic oops concepts