Tuesday, January 21, 2014

object_oriented programming

First time, I heard the word 'oop', it really made my day.( like 'oops')
I am going to take computer science specialist, I know the importance of OOP for me,beside the CSC108 course has taught the first OOP language ---Python .

Nowadays, most of the program is written by using a procedural programming paradigm which is focus on writing function or procedures which operate on data. But in OOP ,the focus is on the   the creation of objects which contain both data and functionality together which mainly called Class in Python.

On the lecture ,we have learned two application of OOP,including two class(Stack and Queue). First one the follows the rule 'input on the last,output on the last'
and Queue follows the rule'input on the last, output on the first'.Comparing with these two class running time, we can  show that the efficiency of the two program.

At the last,OOP focus on object,we should make desire code to apply the question from the  real world.

No comments:

Post a Comment