AppDirect interview question

Core Java - Basic OOPS conceps