473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

OO or what?

What is the oposite of Object Oriented?

C# is an object oriented language but C is a _______ language.
--
_______________________
/_____________________(_)
| _____________________ email to
| | |__________________(_) Peter_Morris_1 at
| |/____________________ btinternet dot com
|_____________________(_)

Nov 15 '05 #1
7 1567
> What is the opposite of Object Oriented?
C# is an object oriented language but C is a _______ language.
C is a procedural language.

There is no opposite of OO. You can choose to use other methodology if it suits the task at hand. Ex. If you are working on SQL Server 2000 and want to implement a piece of logic as a stored procedure you have to use relational/procedural means to write the SP in TSQL.

regards,
Abhishek.

Peter Morris wrote:
What is the oposite of Object Oriented?

C# is an object oriented language but C is a _______ language.
--
_______________________
/_____________________(_)
| _____________________ email to
| | |__________________(_) Peter_Morris_1 at
| |/____________________ btinternet dot com
|_____________________(_)



Nov 15 '05 #2

"Peter Morris" <no********@se.com> wrote in message
news:bt**********@hercules.btinternet.com...
What is the oposite of Object Oriented?
hat is the opposite of a car?

Programming methodologies develop - there is no opposite.
C# is an object oriented language but C is a _______ language.


Procedural.

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
Nov 15 '05 #3
Peter,
C is a procedural language.

However remember you can still apply object oriented methodology to the C
language itself.

Just as you can do procedural programming in C#.

Its just that C# & .NET lends itself to OO much better then C does ;-)

Just a thought
Jay

"Peter Morris" <no********@se.com> wrote in message
news:bt**********@hercules.btinternet.com...
What is the oposite of Object Oriented?

C# is an object oriented language but C is a _______ language.
--
_______________________
/_____________________(_)
| _____________________ email to
| | |__________________(_) Peter_Morris_1 at
| |/____________________ btinternet dot com
|_____________________(_)

Nov 15 '05 #4
> However remember you can still apply object oriented methodology to the C
language itself.
how?
i guess you can get a car to roll on ball bearings for rims but what would
be the point of it? it wasn't designed for that. see what i'm saying?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/2bz4t
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl... Peter,
C is a procedural language.

However remember you can still apply object oriented methodology to the C
language itself.

Just as you can do procedural programming in C#.

Its just that C# & .NET lends itself to OO much better then C does ;-)

Just a thought
Jay

"Peter Morris" <no********@se.com> wrote in message
news:bt**********@hercules.btinternet.com...
What is the oposite of Object Oriented?

C# is an object oriented language but C is a _______ language.
--
_______________________
/_____________________(_)
| _____________________ email to
| | |__________________(_) Peter_Morris_1 at
| |/____________________ btinternet dot com
|_____________________(_)


Nov 15 '05 #5
Alvin,
I view C, C++, C#, VB.NET, RPG, Smalltalk, Fortran as an implementation
detail. That the analysis & design can and should still be done in a Object
Orient manner (OOA & OOD).

Remember I said Object Oriented Methodology, not specifically Object
Oriented Programming.

The best definition I have heard recently for an Object/Class was a Unit of
Responsibility.

In the simplest case: Within your C program you can define "units of
responsibility" that could center around a struct for example. You can
define all the behavior for a "unit of responsibility" that accept this
struct as a parameter (the 'this' pointer). All the attributes would be
members of this struct. Granted is not as elegant as C# or VB.NET, in many
ways it lacks polymorphism & inheritance. However IMHO its still oriented
toward objects...

In the extreme case: Have you ever looked at how COM is implemented for C?
Granted some OOP "purists" will deny that COM is OOP, however IMHO it is
definitely a subset of OO. Using manually created vtables (with some bizarre
macros, you can have polymorphism in C. (not sure if I would go to that
extreme). Remember that the early C++ compilers were actually translators
that converted the C++ code into C code, that the C compiler would then
compile... I'm sure one could define macros to "come close"...
i guess you can get a car to roll on ball bearings for rims but what would
be the point of it? it wasn't designed for that. see what i'm saying?

Which is my point! you can do OOA & OOD then implement it in C, if you
happen to be constrained to C!

Hope this helps
Jay

"Alvin Bruney" <vapor at steaming post office> wrote in message
news:eB*************@tk2msftngp13.phx.gbl...
However remember you can still apply object oriented methodology to the C language itself.


how?
i guess you can get a car to roll on ball bearings for rims but what would
be the point of it? it wasn't designed for that. see what i'm saying?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/2bz4t
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
Peter,
C is a procedural language.

However remember you can still apply object oriented methodology to the C language itself.

Just as you can do procedural programming in C#.

Its just that C# & .NET lends itself to OO much better then C does ;-)

Just a thought
Jay

"Peter Morris" <no********@se.com> wrote in message
news:bt**********@hercules.btinternet.com...
What is the oposite of Object Oriented?

C# is an object oriented language but C is a _______ language.
--
_______________________
/_____________________(_)
| _____________________ email to
| | |__________________(_) Peter_Morris_1 at
| |/____________________ btinternet dot com
|_____________________(_)



Nov 15 '05 #6
Yes. you've convinced me to open up my mind a little more. I've never seen
it that way - i've never been able to think of C in an OO light. But what
you say, though radically different, is very sound technically. I like it.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/2bz4t
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl...
Alvin,
I view C, C++, C#, VB.NET, RPG, Smalltalk, Fortran as an implementation
detail. That the analysis & design can and should still be done in a Object Orient manner (OOA & OOD).

Remember I said Object Oriented Methodology, not specifically Object
Oriented Programming.

The best definition I have heard recently for an Object/Class was a Unit of Responsibility.

In the simplest case: Within your C program you can define "units of
responsibility" that could center around a struct for example. You can
define all the behavior for a "unit of responsibility" that accept this
struct as a parameter (the 'this' pointer). All the attributes would be
members of this struct. Granted is not as elegant as C# or VB.NET, in many
ways it lacks polymorphism & inheritance. However IMHO its still oriented
toward objects...

In the extreme case: Have you ever looked at how COM is implemented for C?
Granted some OOP "purists" will deny that COM is OOP, however IMHO it is
definitely a subset of OO. Using manually created vtables (with some bizarre macros, you can have polymorphism in C. (not sure if I would go to that
extreme). Remember that the early C++ compilers were actually translators
that converted the C++ code into C code, that the C compiler would then
compile... I'm sure one could define macros to "come close"...
i guess you can get a car to roll on ball bearings for rims but what would
be the point of it? it wasn't designed for that. see what i'm saying? Which is my point! you can do OOA & OOD then implement it in C, if you
happen to be constrained to C!

Hope this helps
Jay

"Alvin Bruney" <vapor at steaming post office> wrote in message
news:eB*************@tk2msftngp13.phx.gbl... However remember you can still apply object oriented methodology to
the C language itself.
how?
i guess you can get a car to roll on ball bearings for rims but what would
be the point of it? it wasn't designed for that. see what i'm saying?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/2bz4t
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:un**************@TK2MSFTNGP11.phx.gbl...
Peter,
C is a procedural language.

However remember you can still apply object oriented methodology to

the C language itself.

Just as you can do procedural programming in C#.

Its just that C# & .NET lends itself to OO much better then C does ;-)

Just a thought
Jay

"Peter Morris" <no********@se.com> wrote in message
news:bt**********@hercules.btinternet.com...
> What is the oposite of Object Oriented?
>
> C# is an object oriented language but C is a _______ language.
>
>
> --
> _______________________
> /_____________________(_)
> | _____________________ email to
> | | |__________________(_) Peter_Morris_1 at
> | |/____________________ btinternet dot com
> |_____________________(_)
>
>
>



Nov 15 '05 #7
Object Oriented Programming involves both objects and inheritance.
Programming without inheritance is Object Based Programming.

http://www.geocities.com/jeff_louie/OOP/twisted1.htm

Regards,
Jeff
C# is an object oriented language but C is a _______ language.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: thecrow | last post by:
Alright, what the hell is going on here? In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
12
by: Dario | last post by:
The following simple program behaves differently in Windows and Linux . #include <stdexcept> #include <iostream> #include <string> using namespace std; class LogicError : public logic_error {...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.