- 2

Oop

i think this is the hardest part of python...I really dont even know whats happening anymore

6th Jul 2017, 5:16 PM
Timothy Tabot MacOjong
Timothy Tabot MacOjong - avatar
3 Respostas
+ 1
It's as simple as thinking of things as objects, just as you do with objects of the world. For example, think of the monitor in front of your face. It is an object. It has texture, color, and other things that define it as the object that it is. As well, the object has functions that it performs, such as displaying output to you. Think of the monitor as the object, and all of those properties/methods as what defines the object and how it functions. Hope that helps some.
6th Jul 2017, 5:20 PM
AgentSmith
+ 1
First of all, LOL OOP means Object Orientated Programming (Yeah, yeah you know already) But let's assume it like Class=Blueprint Objects=Things made on that Blueprint So, if there's a Blueprint (Class) but there's no thing made on that Blueprint (objects) then there's no use of that Blueprint (Class). Variables are like height, weight of that of object Methods are like what that thing does, what else can be achieved using that thing Sadly, this is the best explanation I can give
6th Jul 2017, 5:22 PM
Av Nish
Av Nish - avatar
+ 1
thanks...it helped a little...I understand a little more
6th Jul 2017, 5:24 PM
Timothy Tabot MacOjong
Timothy Tabot MacOjong - avatar