Posts

Showing posts from September, 2024

Abstract Keyword

Abstract Keyword                                                                                                               -Vedant. M. Pandit   The abstract keyword in Java is used to create abstract classes   and abstract methods . It signals that a class or method is incomplete and is meant to be extended or implemented by other classes 1. Abstract Class:-   An abstract class is a class that can’t be instantiated directly. It acts as a blueprint for other classes. The abstract class can contain both abstract methods (methods without a body) and concrete methods (methods with a body). Child classes that extend the abstract class are required to provide implementations for the abstract m...