C#.Net中类与结构的区别.pdfVIP

  • 1
  • 0
  • 约2.67千字
  • 约 4页
  • 2020-08-31 发布于广东
  • 举报
一.类与结构的示例比较: 结构示例: public struct Person { string Name; int height; int weight public bool overWeight() { //implement something } } 类示例: public class TestTime { int hours; int minutes; int seconds; public void passtime() { //implementation of behavior } } 调用过程: public class Test

文档评论(0)

1亿VIP精品文档

相关文档