Answers for "difference between abstract method and abstract class"

1

difference between abstract class and final

1-Abstract method should be overriden
 -Final method can't be overriden
2-Abstract method can be inherited
 -Final can't be inherited
3-Abstract can be w/o implementation
 -Final must have implemetation
4-Abstract we can't create objects
 -Final we can create objects(string)
5-Abstract can't be instantiated
 -Final can be instantiated
Posted by: Guest on January-10-2021
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

Code answers related to "difference between abstract method and abstract class"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language