builders and developers session one mstc`15
TRANSCRIPT
Moatasim Magdy• Third Level Student at the Faculty of Computers
and Information – Cairo University.
• Major: Internet Technology
Previous Experience
• MSTC’14 – Business and Marketing Participant.
• CCNA – CISCO Certified.
Agenda
•Windows 8 & windows phone store.
•Universal apps.
•Visual studio.
•Designers & Developers
•Data types.
• Your First program.
•Hello world Program.
Data types
•Value Types
Integer, Characters, Floating, Boolean.
•Reference Types
Strings, classes, arrays.
Floating
Float firstNumber;
Double secondNumber = 13.2;
nb. : double has 15 to 16 decimal digits, while float only has 7.
Class• A class is a construct that enables you to create your own
types by grouping together variables of other types and methods.
What if I want to create a type : student ?
• Student has:
name (String) id(String)
Type ( Char ) GPA(double).
Age (int)
Department (String)
Now, How to make a student class in C# ?
Public class student
{
String name ;
String id;
Char Type ;
Int Age;
String department;
}
Public & private
• Public: The class can be accessed by any other code in the same project.
• Private: The class can`t be accessed.
Namespace• A namespace is designed for providing a way to keep one set
of names separate from another. The classes will not conflict with each others.
System• The System is a namespace that contains fundamental
classes and base classes that define commonly-used value and reference data types.
Important methods
System.Console.Write();
System.Console.WriteLine();
System.Console.ReadLine();
System.Console.ReadKey();