My neighbor is taking \"Intro to Java\", and asked me to help explain a few of the first-day concepts. I realized that since I do this everyday, I don\'t have the beginner\
Object is an instance of a class Variable is an instance of a type
That given,a class can be something like "type on steroids":
it can have :
variables which can be from any type or objects from another class
methods,which
can operate on class variables in the same way as different types have their methods(for example +(bool,bool)
)
can have access to the class variables
and it's all defined by yourself!
You can use the classes to model a problem in the optimal way. But there are sometimes other ways to do it ;)(not only OOP)