Tutor profile: Brenden R.
Subject: Web Development
Subject: Python Programming
What makes Python different than other programming languages such as C#, C++, or Java?
Python is a script based language. In essence, this means that the computer reads line by line the code. The source code is also visible to anyone and can be read with ease. You can find any python file (any file with the .py extension) and open it in Notepad to read the code. What makes it different is that while in Python everything is in scripts, C#, Java, and other languages are compiled. This means that in order to even get the computer to run any of your code you must run it through what is called an interpreter. The interpreter will compile to an .exe or equivalent file type which can then be run. Unlike the .py file, the .exe file can not be opened easily with the end goal of reading the source code.
Subject: C Sharp Programming
What is a Class in C#?
A class is the basis of what makes up all your C# programs. It serves as the skeleton for your programs. Every program you make in this language will contain a Main Class. Now, this Main Class will contain all the basic code and commands you want to execute. Once you have the Main Class, you can make more and more class. For example, say I wanted to make a program for a hardware store. I would create my Main Class and then a separate class in a separate file that would contain basic information on products (let's call it the Product Class). These could be information such as price, item number and name, quantity in stock, etc. Now that we have the Product Class, we can create multiple versions of this class all containing different data but having the same types of data.
needs and Brenden will reply soon.