So, I've just started learning
Java and have some difficulties understanding basic Java programming terms. These terms are:
1. Class
2. Object
3. Methods
4. Instance
5. Instance Variable
6. Others (e.g., member variable, class variable, member methods, instance methods, and many more)
I've been doing some research on my own and these are the results. Please correct me if I'm wrong.
1. Class
- In Object Oriented Programming, class is a place to create objects, methods, and initializing variables. Example of class in Java:
public class javaapplication1() {
<code here>
}
2. Object
- In Java, object is a location in computer memory with a value and identifier (name) assigned to it. variable and methods can be considered as object. Example of object in Java:
I don't know. I understand the concept but I can't demonstrate it. But I do know how to make class as an object to access its methods.
3. Methods
- Methods is a procedure. You can call methods as many times as you want. Method is like function in other programming language. Method is what a class can do (or object? can you consider class as an object?) .
Example of methods in Java:
public void displayStuff() {
}
You can easily identify methods by looking at the set of parentheses after the method name.
4. - 6.
I really have no idea about these terms. Do I need to understand these to be able to proceed deeper into Java programming?
If you want to provide explanation, please explain it like I'm a grade schooler trying to learn programming.