Encapsulation:Encapsulation is the practice of hiding internal details and providing access to only necessary information through methods. It helps maintain data integrity and protects sensitive information.
Superclass:A superclass is the parent class in an inheritance hierarchy. It serves as a blueprint for creating subclasses that inherit its properties and behaviors.
Subclass:A subclass is a child class that inherits properties and behaviors from its superclass. It can add additional features or override existing ones inherited from the superclass.