basic questions regarding C# language

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 1
Reputation: topgun129 is an unknown quantity at this point 
Solved Threads: 0
topgun129 topgun129 is offline Offline
Newbie Poster

basic questions regarding C# language

 
0
  #1
Jan 19th, 2009
Hi,

I'm currently learning C# and I had a few basic questions:

1. What is and what is the difference between void and static and return?

2. What are abstract classes? How do they differ from interfaces?

3. How do you use the char variable?

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 46
Reputation: BlackSun is an unknown quantity at this point 
Solved Threads: 4
BlackSun BlackSun is offline Offline
Light Poster

Re: basic questions regarding C# language

 
1
  #2
Jan 19th, 2009
1- http://www.c-sharpcorner.com/UploadFile/myoussef /CSharpMethodsP211142005232706PM/CSharpMethodsP2.aspx

2- http://en.csharp-online.net/Interfac...stract_Classes

3- char ch1= 'a' ;
// need more explanation from u in third question
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,917
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 274
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: basic questions regarding C# language

 
0
  #3
Jan 21st, 2009
Your first question are actually 3 questions. Just give us a break, please! What if I would ask you: Tell me something about hydrogen, helium, lithium, beryllium, boron, carbon...(I can go on you know)
Please use a simple question about the problem you have.
So we can formulate an answer in a way you will understand the most.
Last edited by ddanbe; Jan 21st, 2009 at 7:05 pm.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 7
Reputation: ruchi18 is an unknown quantity at this point 
Solved Threads: 0
ruchi18 ruchi18 is offline Offline
Newbie Poster

Re: basic questions regarding C# language

 
0
  #4
Jan 24th, 2009
Hi,
i think you are using C# so you want the difference betwen Void Static & return ok i will explain u one by one
all u have been is askedin ur 1st question is related to function i.e.

void--> it is using in function to define function type means if u want ur function doesn't return anything then you have to define "void function functionname" this type of function not return anything

Static --> as C# is in object oriented lang. so it always need an object but if function is define like "static function" then there is no need for object required.

return-->return is return type of function means ur fun return anything then which kind kind of data is returned like integer,charater etc.....

i hope this will help you to understand
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC