.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Functions Versus Class Methods

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
183 Views, 3 Replies

Functions Versus Class Methods

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?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

"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?
Message 3 of 4
Anonymous
in reply to: Anonymous

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?
Message 4 of 4
Anonymous
in reply to: Anonymous

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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost