Tuesday 21 January 2014

Object-oriented programming

OK so this is the first time that I write my slog for CSC148.

These three weeks we have been learning about the object-oriented programming.Up to now nothing exciting has showed up and it really bothered me when I found that I sometimes felt it hard to understand the codes not to mention to write them.I am confused what OOP really is.But I do not struggle with it anymore,because I realized that there is a lot related to it I should know,like class and methods.To me OOP mainly deals with objects and data.I feel that it is quite like the part of Class and Method that we learned in CSC108 like creating a new class and defining new methods for it to accomplish something.It seems like a large part of what we have learned and what we will learn are parts of OOP,like Class and Inheritance.But sadly I did worst in Class in 108.

Last week we started learning stack,which is a data structure with methods like pop and push.So is queue which appeared in the tutorial.The codes for them are just like what we wrote when defining a new class and its methods.Today's tutorial really helped a lot.I actually learned what stack and queue are about and got familiar with their codes,although sometimes I had trouble getting them right.Hope things will get better.