Sunday, September 30, 2012
Let's Go To Class
This week in Comp Sci was all about classes. What confounded me initially were constructors. I had no idea how you could have something that worked without declaring a class or return type, but I just kind of went with it for a while. The moral of the story was that you have to wait, however, for as we expounded on the idea of classes and objects, it all became clear to me. Constructors are what allow you to actually create the object that is acted upon within the parameters of the object class. It seems obvious now, but things can be really confusing initially
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment