Hello everybody. Hope all of you are doing well. Last time we talked a little bit about the collections. Today we will talk about OOP concepts like encapsulation, inheritance, polymorphism, and interfaces. Encapsulation Encapsulation is hiding data away from the end user i.e, If we have a password variable and we…