C/C++ >> OOP
Posted by Peter on 22:14:00 11-03-2001
Could somebody write a short little OOP tutorial (C++)? It'd be pretty cool.
Posted by fabs on 13:28:00 11-04-2001
I could do that. I've been using OOP all along with my new project which is now REALLY almost done
fabs
Posted by Peter on 14:03:00 11-04-2001
That's great =). I'm looking forward to it.
Posted by fsvara on 15:50:00 11-04-2001
I've read some stuff about oop in my gtk book...

The author says that GTK+ is hevaily object oriented... He says like "As C is in itself not an object oriented language, one can't really talk of <insert oo techy speech here>, but GTK is designed to heavily use oo principles."

So, I have come to the conculsion that you can use oo even in non-oo langs
Posted by Peter on 21:52:00 11-04-2001
From what I've heard/read, you can. Classes do exist in C if I'm not very mistaken.
Posted by fsvara on 12:14:00 11-05-2001
huh? never heard of that...

then what would c++ be for? anyway, what a lot of books (or people writing them, heh ) seem to want to tell you is like "OOP is not a programming style, it's a way to think"...
Posted by fabs on 06:52:00 11-07-2001
Well, they often say, you can program OOP in any language, and what they are refering to is the way an oo-programmer thinks. You know, in terms of creating objects which interact with each other. Of course, you could realize such an effect with a language like C. You simply use structs and functions. It's all about the way your program is designed logically. C++ however makes oop a really natural thing which is great. Imho, trying to program oop in C is simply stupid. The language isn't made for it and things will end in disaster. It is however possible, yet a lot different from the way C++ or Java implant oop.

fabs