.NET

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

Functions Versus Class Methods

55 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 (55 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 (55 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 (55 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?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community