Chirag Solutions interview question

Basic of java Oops concepts