Escolar Documentos
Profissional Documentos
Cultura Documentos
DOTNET Development or C#
Enumeration Type
Example:
Tue
6
Strings
Classes
Class Example
Class Notes
Interfaces
Sample Interface
public interface IDrivable {
void Start();
void Stop();
void Turn();
}
void GoForward(IDrivable d)
{
public class SportsCar : IDriveable {
d.Start();
void Start() {
// wait
// Code here to implement start
d.Stop();
}
}
void Stop() {
// Code here to implement stop
}
void Turn() {
// Code here to implement turn
}
Reading Input
Procedural Stuff
Random class:
Random r = new Random();
r.NextDouble();
// Returns random double
between 0-1
r.Next(10,20);
// Random int, 10 int < 20