oops概念construcror [英] oops concepts construcror
本文介绍了oops概念construcror的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你可以给我举例和简单的c#构造函数和析构函数
can u give me the examples and simple c# constructor and destructor
推荐答案
对于初学者来说,OOP有点过于复杂从论坛回复中学习它。 C#中没有析构函数,因为它没有确定性破坏。最简单的构造函数是
OOP is a bit too complex for beginners to learn it from forum replies. There are no destructors in C#, because it does not have deterministic destruction. The simplest constructor is
public MyClass
{
// Constructor
public MyClass()
{
}
}
然而,这并不是''真的告诉你很多,关于这个主题或书籍的文章是最好的学习方法。
However, that doesn''t really tell you much, and an article on the topic, or a book, is the best way to learn.
参考下面的链接:
http://csharp.net-tutorials.com/classes/constructors-and-destructors/ [< a href =http://csharp.net-tutorials.com/classes/constructors-and-destructors/target =_ blanktitle =New Window> ^ ]
C#中的析构函数 [ ^ ]
http://www.c-sharpcorner.com/UploadFile/rajeshvs/ConsNDestructorsInCS11122005010300AM/ConsNDestructorsInCS.aspx 一> [ ^ ]
http://www.vijaymukhi.com/documents/books/csbasics/chap3.htm [ ^ ]
refer below links:
http://csharp.net-tutorials.com/classes/constructors-and-destructors/[^]
Destructors in C#[^]
http://www.c-sharpcorner.com/UploadFile/rajeshvs/ConsNDestructorsInCS11122005010300AM/ConsNDestructorsInCS.aspx[^]
http://www.vijaymukhi.com/documents/books/csbasics/chap3.htm[^]
对于构造函数,您可以参考下面的链接
http://www.c-sharpcorner.com/UploadFile/puranindia/constructors-in-C-Sharp/ [ ^ ]
C#中的构造函数介绍 [ ^ ]
for Destructors:
C#中的析构函数 [ ^ ]
http://www.c-sharpcorner.com/UploadFile/chandrahundigam/UnderstandingDestructors11192005021208AM/UnderstandingDestructors.aspx [ ^ ]
For constructor you can refer below links
http://www.c-sharpcorner.com/UploadFile/puranindia/constructors-in-C-Sharp/[^]
An Intro to Constructors in C#[^]
for Destructors:
Destructors in C#[^]
http://www.c-sharpcorner.com/UploadFile/chandrahundigam/UnderstandingDestructors11192005021208AM/UnderstandingDestructors.aspx[^]
这篇关于oops概念construcror的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文