The difference from a normal class is more ambiguous Image that abstract class is "car" and general class is "Prius" Hmm, isn't it ...
When entering the main subject An abstract class is a class that has abstract methods An abstract method is one that has no processing and only describes how to call it.
Regarding the definition Use the abstract modifier
syntax 「class」
abstract class class name
「method」
abstract Return type Method name
To use it, for example, create a process to calculate and call a numerical value with an abstract class or method. Have a numerical value, perform the calculation process in another class Such an image
Please point out if you make a mistake ... orz
Recommended Posts