Tuesday, October 8, 2013

OPP

Object-Oriented Programming is a programming feature that allows the coder to create objects. Objects are instances of a class that contain their own variables as fields. The object's class can have many useful functions. OOP revolutionized computer programming. Any modern, practice, and diverse programming language should have OOP capabilities. It is extremely useful for computer scientists. A real strength of OOP is combining it with inheritance. For example, in a video game, I could have a bad-guy class, a boss class that inherits from that class, and a boss object created from the boss class. I use objects all the time in game programming, for things like tiles, characters, items, etc.. In Python, every variable is aobject.

No comments:

Post a Comment