求 C# 模拟电路程序
来源:百度知道 编辑:UC知道 时间:2024/05/11 05:16:39
using System;
using System.Collections.Generic;
using System.Text;
namespace CircuitDiagram
{
namespace CircuitDiagram
{
public class Switch
{
private bool _Status;
public bool Status
{
get { return _Status; }
set { _Status = value; }
}
}//创建开关类
public class ElectricSource
{
private double _U;
public double U
{
get { return _U; }
set { _U = value; }
}
}//创建电源类
public class Light
{
private bool _TurnedOn;
public bool TurnedOn
{
get { return _TurnedOn; }
set { _TurnedOn = value; }
}