Answers for "why we need abstract classes ]"

2

is it necessary for abstract class to have abstract method

Abstract classes CAN have non-abstract methods.
Posted by: Guest on August-27-2021
0

can you declare an abstract method in a non abstract class

No. A normal class(non-abstract class) cannot have abstract methods.
Posted by: Guest on November-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language