摘要
C#中类与对象之间的数据传递一直是初学者的难点。鉴于此,根据多年的C#教学经验,设计了一个应用于C#教学的类数据成员初始化的案例模型。该模型共运用了三大类六种数据传递的方式,全面演示了对象与类之间所有可能的数据传递方法。对于每种方法分别从类的设计与相应的对象调用两个角度进行了分析。
The data communication between a C# class and its objects is always a difficult point for beginners.For this reason,a case model of class data member initialization applied to C# teaching is designed according to years of teaching experience.The model uses three large classes and six data communication modes to fully demonstrate all possible data communication methods between classes and objects.Each method is analyzed from the views of class design and relevant object invoke respectively.
出处
《计算机时代》
2011年第3期53-54,56,共3页
Computer Era
基金
南京财经大学教改课题(JGY1132)
关键词
类
对象
初始化
数据传递
C#
class
object
initialization
data communication
C#