A class is an object that summarizes the processing for executing programming, and there are member variables and methods for executing the processing in the processing of the class.
By the way, a member variable is a variable used in a class, and a method is a collection of processes performed using member variables.
The class is described as follows.
java.
class class name{
Execution processing,,,
}
If you've ever written java programming, you've probably seen it, but it's written outside of programming.
There are (public class) and (private class) in class. Declarations like the one above are called modifiers. The (sample) after that is the name of the class. The difference between (public) and (private) is the location where they can be used. (public) is a place that can be used from the outside, and places with (private) are the range that cannot be used from the outside.
Recommended Posts