这个代码算是我学习C#的笔记吧,我会持续更新的,另外,欢迎大家前往我的个人博客参观a
LMC的个人站
using System;
namespace cstestApp
{
class Box
{
int Longth;
int Height;
int weight;
public void writeIn()
{
Longth = 10;
Height = 25;
weight = 13;
}
public double WriteOut(int num1,int num2,int num3)
{
int Result = num1 * num2 * num3;
return Result;
}
public void MesgOut()
{
Console.WriteLine(WriteOut (Longth, Height, weight));
}
}
class Mian
{
static void Main(string[] args)
{
int MainLongth=0, MainHeight=0, Mainweight = 0;
Box r = new Box();
r.writeIn();
r.WriteOut(MainLongth,MainHeight,Mainweight);
r.MesgOut();
Console.ReadLine();
}
}
}