Wednesday, 18 February 2015
Summary on Object-Oriented Programming
As a continuation of CSC108, I have learned much more on object oriented programming and how it can be applied not only on how to create computer classes, but also in everyday life. Throughout object-oriented programming, I've learned about many different ideas, such as classes, attributes, methods and instance variables. Not only was I able to create different classes, but I connected all the different ideas with structure and used the appropriate methods.Take as an example, myself, Amanda D'Errico. If we were to create class Girl, we would need different attributes, such as height, weight, hair colour, and so on. These different attributes will have appropriate names to define the methods for class Girl. Then, we can have myself as an instance. Other ideas that I've learned in the past few weeks are different ADTs, such as Stack. There are many built-in functions to Stack, such as is_empty, push and pop, which all contribute to its class. Stack follows a first in, last out (FILO) property, which I like to picture as a tube with marbles stacked upon another. Another ADT I've learned is Queues, which follows a first in, first out ideology (FIFO), resembling a cafeteria line. Inheriting data types have also played a role in object-oriented programming, as it has shortened my code. Overall, object-oriented programming has helped me expand ideas in computer science and in the rest of the world, and I hope to learn more in the following weeks!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment