Quote:
|
Originally Posted by Zelker
Wow.
Already confused.
Anyone know a simple way to explain classes and methods?
-Zelker
|
I realize this is a fairly old post, but I decided that this question should be answered.
A class simply can be thought of as a job description.
A method is a discrete section of code that exists inside a class and performs a task or tasks for the class. The tasks are performed by the object and defined by the class. A method can have data passed into it and can return data if necessary.