Computer Science, asked by jayantikam8203, 1 year ago

What are abstract classes in Java?

Answers

Answered by aarushi94
1
Abstract Methods and Classes in Java. Abstract methods, similar to methods within an interface, are declared without any implementation. They are declared with the purpose of having the child class provide implementation. They must be declared within an abstract class.

hope it helps
Answered by Anonymous
7

An abstract class in JAVA is a class which is defined by using the abstract keyword .

MORE INFO :

↪ We are well aware about one of the concepts of OOP ( Object Oriented Programming ) .

↪ Data abstraction refers to the representation of essential features rather than including background details . It helps in enhancing privacy.

↪ We need to inherit the class in order to use an abstract class.

↪ An abstract method is a method which contains the abstract keyword.

↪ An example of an abstract method is :

abstract void middle

↪ The abstract class can be inherited by using the extends keyword .


sabrinanandini2: superb
Anonymous: : )
Similar questions