Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialUnsubscribed User
1,653 PointsI Need Help With A Few Terms
So I have gone through the course a couple of times yet I still am quite confused with some C# terminology and what they are actually used for. So here is what I am confused about:
So what really are namespaces (I watched the video) but how does it work. For example: if I were to make a namespace named Treehouse well what is the purpose of that, what is that meant to do and how does the namespace "system" work, what is it? Why would you put "using system;" instead of "using Treehouse;" for an example.
I have the same problem with classes. What is the purpose of them and their relationship with namespaces and methods?
The same thing with methods. What is the purpose of them and their relationships with classes and namespaces?
And finally: I don't get the purpose of the code "void" or "static void" or "static void main" I mean what is the purpose of putting void there as well as what is the purpose of putting main there?
Thanks.
2 Answers
Alexander Davison
65,469 PointsDon't worry about those for now. Just forget about them. In the next course you will learn all about this nitty-gritty stuff.
Once you've completed this course, you should move on to the C# Objects
course which talks about everything you are asking now and extra. Just be patient and you'll get there.
Still, don't lose you focus on this course since this course is very important as a first step!
~Alex
Veliana Ivanova
6,164 PointsHello Colby, You should think about this as a HIERARCHY.
In the programming world: Namespace --> Classes --> Methods (functions)
In the real world:
Same Association(Example): Country --> City --> Streets