• Advertisement
Sign in to follow this  

OOP

This topic is 4252 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Quick question. I'm sure that I know what this means, but I can't put words with the abv. What is OOP?

Share this post


Link to post
Share on other sites
Advertisement
Okay, I guess I didn't know what it was.

Okay, what is Object Oriented Programming? Things like OpenGL and DirectX?

Share this post


Link to post
Share on other sites
object oriented programming is a way of keeping your code clean, and almost modular.

so for instance, in your main code you would have you game loop, some function prototypes and such.
then you would include a header file that contained your AI classes and formulas, your graphics rendering functions and so on.

it makes your code much cleaner and IMO makes code much easier to follow and debug

i know this isn't very clear but im at work and can't really type it all out

Share this post


Link to post
Share on other sites
Quote:
Original post by iomanip
Okay, what is Object Oriented Programming? Things like OpenGL and DirectX?
OpenGL and DirectX are APIs.

OOP is a method of programming, dividing imperative functions and state into separate modules called objects. It can help with organization of code, abstraction and encapsulation.

See Object-oriented programming on wikipedia. In C++, C# and Java, OOP is supported with classes and inheritance.

Contrast this with Procedural programming, which OOP is an evolution of, and Functional programming which is quite different from both OOP and procedural programming.

Share this post


Link to post
Share on other sites
Object Oriented Programming is just a paradigm, there are lots of those around and knowing them improves your quality of code. Some of them are made by computer scientist, some by software developers(or by those who are both).

The worst thing you can do with them is to start thinking that one of them is a silver bullet which solves all your problems.

Best thing you can do with them, to learn how to use them, then benefit from them. Use their strong and weak points to your benefit.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
OOP is a means to an end ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement