943,648 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2028
  • C# RSS
Jan 19th, 2009
1

basic questions regarding C# language

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
topgun129 is offline Offline
1 posts
since Jan 2009
Jan 19th, 2009
1

Re: basic questions regarding C# language

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
Reputation Points: 28
Solved Threads: 5
Light Poster
BlackSun is offline Offline
46 posts
since Feb 2008
Jan 21st, 2009
0

Re: basic questions regarding C# language

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.
Reputation Points: 2023
Solved Threads: 644
Senior Poster
ddanbe is online now Online
3,736 posts
since Oct 2008
Jan 24th, 2009
0

Re: basic questions regarding C# language

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
Reputation Points: 10
Solved Threads: 0
Light Poster
ruchi18 is offline Offline
29 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Inserting Empty Line in String Variable
Next Thread in C# Forum Timeline: postfix calculator





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC