Professional Documents
Culture Documents
Filename: Program.cs
using Lesson03Ex1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson03Ex1
{
class Circle
{
private float fltRadius;
public Circle(float r)
{
fltRadius = r;
}
c1 = new Circle(radius);
float fltCircumference1 = c1.Circumference();
c2 = new Circle(radius);
Console.ReadKey();
}
}
}
Lesson03Ex2
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;
namespace Lesson03Ex2
{
internal class Rectangle
{
private float fltLength;
private float fltBreadth;
Console.WriteLine(r1.GetSize());
Console.WriteLine(r2.GetSize());
Console.ReadKey();
}
}
}
Lesson03Ex3
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson03Ex3
{
class Account
{
private string strType;
private string strName;
private float fltBalance;
Console.ReadKey();
}
}
}