+ 3

Explain About Classes in C#

I am learning C# and stuck in creating own Classes section can anyone read my code below which I copied from google and explain me very very easily about how to create a class in C# please I am stuck here so hard. https://code.sololearn.com/c2cw9kAhjYkH/?ref=app https://code.sololearn.com/c2cw9kAhjYkH/?ref=app

15th May 2018, 11:44 AM
Robin
Robin - avatar
4 odpowiedzi
+ 1
I added comments to the code. Take a look and return with any questions: https://code.sololearn.com/c9CuJInyL7Ar/#cs
15th May 2018, 11:54 AM
Frederik Stenberg
Frederik Stenberg - avatar
+ 2
Thanks once again I have saved your code as a backup to read everytime if I forget about this. You expalin so perfectly.
15th May 2018, 12:25 PM
Robin
Robin - avatar
+ 1
You can also make functions based on variables, those need to return something. I made a code snippet with comments, which hopefully explains it properly: https://code.sololearn.com/c6SY8XOFO80M/#cs
15th May 2018, 12:17 PM
Frederik Stenberg
Frederik Stenberg - avatar
0
Thanks you so much it really helped me alot. Now I am clear with this topic of creating class. only one question I want ask is what does it means that "void" does not return any value. which value they are saying?
15th May 2018, 12:04 PM
Robin
Robin - avatar