Answers for "abstract vs non abstract methods"

1

abstract class vs non abstract class

non-abstract class:
cannot: abstract methods
can: constructor, instance method, static method, instance block,s
tatic block, instance variable, static variable
abstract class:
can: constructor, instance method, static method, 
instance block, static block, instance variable, static variable...
abstract method: method without implementation, 
meant to be override (cannot create object, cannot be final,static,private)
Posted by: Guest on May-28-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 "abstract vs non abstract methods"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language