JAVA learning history abstract classes and methods

Abstract classes and methods

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

JAVA learning history abstract classes and methods
Java abstract methods and classes
[Java] Generics classes and generics methods
Java generics (defines classes and methods)
JAVA learning history final modifier and static modifier
Java programming (classes and instances, main methods)
JAVA learning history interface
java (classes and instances)
[Java] Personal summary of classes and methods (basic)
JAVA learning history interface inheritance
(Note) Java classes / variables / methods
Java learning memo (abstract class)
Java methods and method overloads
[Ruby] Singular methods and singular classes
About abstract classes in java
Ruby methods and classes (basic)
[Ruby] Singular methods and singular classes
Define abstract methods in Java enum and write each behavior
Java, abstract classes starting from beginners
How to call classes and methods
[JAVA] Difference between abstract and interface
Studying Java 8 (StaticIF and Default methods)
Classes and instances Java for beginners
Java learning (0)
Java methods
Java methods
Java Silver exam procedure and learning method
Inexperienced learning methods to get Java Silver 11
Output using methods and constants Learning memo
[Details] Let's master abstract classes and interfaces! !!
[Java ~ Classes and External Libraries ~] Study Memo (6)
A note on the differences between interfaces and abstract classes in Java
Classes and instances
Java Basic Learning Content 6 (Inheritance / Abstract Class / Interface)
Java class methods
Java learning day 5
java (abstract class)
Understand the difference between abstract classes and interfaces!
interface and abstract
Differences in writing Java, C # and Javascript classes
Functions and methods
Kantai Collection Java # 1 Classes and Objects [For Beginners]
Check static and public behavior in Java methods
Java and JavaScript
XXE and Java
Ruby Learning # 15 Methods
[java] abstract class
How to access Java Private methods and fields
java learning day 2
java learning day 1
[Java] [javaSliver] The interface and abstract classes are complicated, so I will summarize them.
Java classes and instances to understand in the figure
Use of Abstract Class and Interface properly in Java
Equivalence comparison of Java wrapper classes and primitive types
Java abstract modifier [Note]
[Ruby] Classes and instances
java classes, instances, objects
HashMap and HashSet classes
java learning (conditional expression)
Java true and false
Ruby Learning # 29 Classes & Objects