Infosys interview question

Difference between private and public class