Friday, March 2, 2012

Classes = Rice Krispies Recipe

Thursday's class was a pretty laid back lecture and Dr. Poplawski talked mostly about the distinction between classes and object. The class, as he put it, is like the rice krispies recipe while the object is like the rice krispie itself. A class is the description of what happens in the object and the object is the thing that the class is describing. Dr. Poplawski also went through a simple example of the application of the classes and object. He made the class in one java file and the object in another. It was a bit confusing at first as to why he did that, but after seeing the result and how the methods were implemented into the class, it made more sense to me. I imagine that the next homework program will have to do with maps and/or classes and methods. During spring break I will at least look at the homework program and attempt to at least start it.

No comments:

Post a Comment