Object Oriented Programming (JNNC Technologies)



In this series, we’ll explore Object Oriented Programming.
Everything is an object in Python.
Sometimes the terms objects and classes are mixed, but they are different concepts.

Object

An object can contain variables and/or methods that interact with those variables.
Sometimes objects are named after real world objects.
In a RC car program, you may find:
The first line creates the object. The second line calls the method turnOn(). That method may modify the objects variables.

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();