| View previous topic :: View next topic |
| Procedural or OOP |
| Procedural/Generic/Structural |
|
100% |
[ 1 ] |
| OOP |
|
0% |
[ 0 ] |
|
| Total Votes : 1 |
|
| Author |
Message |
reubatsch456 Cheater
Reputation: 0
Joined: 03 Jan 2008 Posts: 30
|
Posted: Thu Jan 03, 2008 5:28 pm Post subject: Question about C++ |
|
|
I have been learning C++ for a while now. I was wondering if learning the OO/Polymorphism part is really crucial to the language. Can I possible get by C++ without using its OOP extensions and just use its other features for a better procedural programming?
Also, out of curiosity, I was wondering if any of you people preferred procedural programming to OOP.
Thanks.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Jan 04, 2008 5:44 am Post subject: |
|
|
C++ itself is OOP. It was created, and formally named 'C With Classes' when it was first created which was later then renamed to C++. OO (Object-Oriented for the people not really following along) includes, and is not limited to: Objects, Classes, Sub-Classes, Virtual Methods, Coroutines, Garbage Collection, and Discrete Event Simulation.
| Quote: | | Object-oriented programming may be seen as a collection of cooperating objects, as opposed to a traditional view in which a program may be seen as a group of tasks to the computer ("subroutines"). In OOP, each object is capable of receiving messages, processing data, and sending messages to other objects. |
If you are programming in C++ you wont avoid OO at all unless you are using a C++ compiler to code in straight C. Although most don't see classes as being part of the OOP style, they are.
Reference: (Because referencing is fun!)
http://en.wikipedia.org/wiki/Object-oriented_programming
_________________
- Retired. |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Fri Jan 04, 2008 5:54 am Post subject: |
|
|
| Wiccaan wrote: | | If you are programming in C++ you wont avoid OO at all unless you are using a C++ compiler to code in straight C. Although most don't see classes as being part of the OOP style, they are. | I was going to say exactly the same after reading your post. If you're not intrested in the OO-stuff, why not to code in pure C?
|
|
| Back to top |
|
 |
|