Run at visual studio
Exemple :
class Customers
{
string _firstName;
string _lastName;
public Customers(string firstName,string lastName)
{
this._firstName = firstName;
this._lastName = lastName;
}
public void PrintFullName()
{
Console.WriteLine("Your Full Name = {0}", this._firstName + " " + this._lastName);
}
~Customers()
{
//clean code
}
}
class Program
{
static void Main(string[] args)
{
Customers C1 = new Customers("Kamrul","Hasan");
C1.PrintFullName();
}
}
Exemple :
class Customers
{
string _firstName;
string _lastName;
public Customers(string firstName,string lastName)
{
this._firstName = firstName;
this._lastName = lastName;
}
public void PrintFullName()
{
Console.WriteLine("Your Full Name = {0}", this._firstName + " " + this._lastName);
}
~Customers()
{
//clean code
}
}
class Program
{
static void Main(string[] args)
{
Customers C1 = new Customers("Kamrul","Hasan");
C1.PrintFullName();
}
}
0 comments:
Post a Comment