473,416 Members | 1,542 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,416 software developers and data experts.

Struggling - 'static' vs 'void' etc?

I am really struggling to conceptually understand classes in C# especially
the use of the strange keywords 'static' 'void' and 'override'....

Is there a 'idiots' way of understanding these concepts broadly before even
touching a line of code....
Thanks
Jason
Nov 19 '05 #1
5 4040
Google: "C# Class Design"
WROX "C# Class Design - Coding Effective Classes Handbook" is what you need.

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

<ja***@catamaranco.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I am really struggling to conceptually understand classes in C# especially
the use of the strange keywords 'static' 'void' and 'override'....

Is there a 'idiots' way of understanding these concepts broadly before even touching a line of code....
Thanks
Jason

Nov 19 '05 #2
WJ
Static = non-object
Void = a method that does not return a value
Override = when you decide to discard the origins and implenet your own.

The better definitions can be viewed here:
http://msdn.microsoft.com/library/de...eywords_pg.asp

John

<ja***@catamaranco.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I am really struggling to conceptually understand classes in C# especially
the use of the strange keywords 'static' 'void' and 'override'....

Is there a 'idiots' way of understanding these concepts broadly before
even
touching a line of code....
Thanks
Jason

Nov 19 '05 #3
This should help get you started.

http://www.geocities.com/jeff_louie/oop.htm

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4
Thanks guys....!
<ja***@catamaranco.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I am really struggling to conceptually understand classes in C# especially
the use of the strange keywords 'static' 'void' and 'override'....

Is there a 'idiots' way of understanding these concepts broadly before even touching a line of code....
Thanks
Jason

Nov 19 '05 #5
I found this sample chapter on C# extremly helpful....as a newbie I have
been searching for a 'magic' way to instantly digesting the 'broad' concepts
in C# this tutorial helped me a lot:

http://www.joegrip.com/csharp-course.html (see flash C#)

- Jason
<ja***@catamaranco.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I am really struggling to conceptually understand classes in C# especially
the use of the strange keywords 'static' 'void' and 'override'....

Is there a 'idiots' way of understanding these concepts broadly before even touching a line of code....
Thanks
Jason

Nov 19 '05 #6

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

Similar topics

1
by: Bryan Parkoff | last post by:
I know how to write "Pointer to Function" inside struct or class without using static, but I have decided to add static to all functions inside struct or class because I want member functions to be...
4
by: Angus Comber | last post by:
Hello I have received a lot of help on my little project here. Many thanks. I have a struct with a string and a long member. I have worked out how to qsort the struct on both members. I can...
2
by: superseed | last post by:
Hi, I'm pretty new to C#, and I'm quite stuck on the following problem. I would like to add to my application a Windows.Form (singleton) on which I could display a message of one of the...
18
by: Tony Burrows | last post by:
I'm just learning C as another language, and I'm trying to build some utilities into a library. I have this (crude I know) function: void insert(char* insrt, char* source, int place){ char...
32
by: lcdgoncalves | last post by:
Hi everyone Is there a real need to use keyword static with functions, if we simply don't declare their prototypes in .h file? Many textbooks avoid to discuss this matter and/or discuss only...
1
by: Sandro Bosio | last post by:
Hello everybody, my first message on this forum. I tried to solve my issue by reading other similar posts, but I didn't succeed. And forgive me if this mail is so long. I'm trying to achieve the...
0
by: ghost_of_rooney | last post by:
Maybe my example isn't a good candidate for Bridge, or maybe I'm applying Bridge incorrectly, but I don't see the benefit of the pattern here. If I eliminated the Bridge and extended the shape...
7
by: Codeseeker99 | last post by:
I am new to java and I am trying to learn how to to reduce lines of code that are redundant in a simple file I made. I am trying to figure out how to reduce this code down to 13 methods not including...
3
by: Bryan Parkoff | last post by:
The local variables and local functions are inside class body. You define a variable to the class "Reg reg;" in the main function. The reg variable has a pointer. The pointer gives memory...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.