Litmus7 interview question

queries java program how to implement encapsulation overriding etc...write program of all of those