C Sharp
C Sharp
Ahmad Damra
MCT, MCSD, MCPD, MCTs
FB.COM/Mr.AhmadDamra
Exampl 3
int x = 20; int y=50;
if(x==2 || y==20)
{
Label1.Text = "Welcome";
}
else
{
Label1.Text = "No";
}
}
}}}
Call namespace : using ProjectA.TeamA
If namespace to long :
©2017 Ahmad Damra
Introduction to classes
Call Class :
customer c1 = new customer("Ahmad", "damra");
TextBox1.Text = c1.PrintFullName();
FullTIme and PartTime employee specific code in the respective derived class
Note: you will specify all the common fields, properties, methods in the base
class, which allows reusability. In the derived class you will only have fields,
properties and methods that are specific to them.