Sunday, March 1, 2015

week6:summary of Object-Oriented Programming concepts

Object-oriented programming (OOP) is a programming based on object, which are data structure that contain data and code, which is called as method.

And in python, every object has its memory address. two objects  possibly have the same value with different memory address. To test it in python, use "is" or by checking its "id".

 Class, as a type of object, has been used frequently in many languages. and Class is essential and basic for us to understand.

i just found a picture from internet. these words are the fundamentals in OOP, which is important for beginners to understand. We already know interface,abstract class,class, inheritance and abstraction.What I want to point out here is a subclass can inherit behavior and state from main classes, and the interface can connect classes and the "outside world".

No comments:

Post a Comment