.NET

Reply
*Mark Collins
Message 1 of 4 (60 Views)

Functions Versus Class Methods

60 Views, 3 Replies
10-13-2005 04:28 AM
Every now and then you're cruising right along and then all of a sudden
massive confusion sets in! It all seemed so clear just moments ago and now?
now(!) What was I thinking?? I hate it when this happens...

In the grand scheme of things, what is the practical difference between
implementing functionality in a plain function versus a class method? Don't
they accomplish the exact same thing except the latter associates the
functionality very specifically with a particular group of functionality?
*J. Daniel Smith
Message 2 of 4 (60 Views)

Re: Functions Versus Class Methods

10-13-2005 05:26 AM in reply to: *Mark Collins
"In the grand scheme of things", not much.

Object-oriented programming techniques are much more for humans than
computers. If you're disciplined, and are the only person working on a
fairly small amount of code, OOP doesn't get you a whole lot. But those are
a lot of "ifs", and you don't get much help from the compiler.

Take a look at Xt/Motif (X-Window GUI) for a well-known example of doing OOP
in straight C.

Dan

"Mark Collins" wrote in message
news:4983216@discussion.autodesk.com...
Every now and then you're cruising right along and then all of a sudden
massive confusion sets in! It all seemed so clear just moments ago and now?
now(!) What was I thinking?? I hate it when this happens...

In the grand scheme of things, what is the practical difference between
implementing functionality in a plain function versus a class method? Don't
they accomplish the exact same thing except the latter associates the
functionality very specifically with a particular group of functionality?
*Tony Tanzillo
Message 3 of 4 (60 Views)

Re: Functions Versus Class Methods

10-13-2005 09:48 AM in reply to: *Mark Collins
In the context of what language? In C# you can't
write plain functions. All code must be a method
(static or non-static).

Are you using VB ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Mark Collins" wrote in message news:4983216@discussion.autodesk.com...
Every now and then you're cruising right along and then all of a sudden
massive confusion sets in! It all seemed so clear just moments ago and now?
now(!) What was I thinking?? I hate it when this happens...

In the grand scheme of things, what is the practical difference between
implementing functionality in a plain function versus a class method? Don't
they accomplish the exact same thing except the latter associates the
functionality very specifically with a particular group of functionality?
*Mark Collins
Message 4 of 4 (60 Views)

Re: Functions Versus Class Methods

10-13-2005 12:07 PM in reply to: *Mark Collins
Sir,

I was talking in the context of C#. Rather than using the term function, I
should have used the term method. I typically use the term method for
non-static member functions and function for all other types.


"Tony Tanzillo" wrote in message
news:4983807@discussion.autodesk.com...
In the context of what language? In C# you can't
write plain functions. All code must be a method
(static or non-static).

Are you using VB ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"Mark Collins" wrote in message
news:4983216@discussion.autodesk.com...
Every now and then you're cruising right along and then all of a sudden
massive confusion sets in! It all seemed so clear just moments ago and now?
now(!) What was I thinking?? I hate it when this happens...

In the grand scheme of things, what is the practical difference between
implementing functionality in a plain function versus a class method? Don't
they accomplish the exact same thing except the latter associates the
functionality very specifically with a particular group of functionality?
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.