本文介绍了[不是问题]为可以通过咖啡店的销售点系统销售的商品设计和实施C#类。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为可以通过咖啡店的销售点系统销售的商品设计和实施C#类。设计并实现至少两个派生自您的第一堂课的其他类。每个类必须至少有一个方法和至少两个属性。确保派生类添加其他属性和/或方法。编写一个基于控制台或基于表单的示例应用程序,它实例化每个对象中的一个,并使用ToString方法(默认情况下为所有C#对象定义)在实例化时为每个类输出有意义的数据。通过控制台应用程序实例化该类,并显示该对象的详细信息(通过您实现的ToString方法)。



我不知道如何解决这个问题会不会有任何帮助?

解决方案



Design and implement a C# class for items that can be sold via a point-of-sale system for a coffee shop. Design and implement at least two other classes derived from your first class. Each class must have at least one method and at least two attributes. Make sure your derived classes add additional attributes and/or methods. Write a sample application that is either console- or forms-based that instantiates one of each of your objects and use the ToString method (defined by default for all C# objects) to output meaningful data for each of your classes as they are instantiated. Instantiate that class via your console application and display (via a ToString method that you implement) the details of that object.

I have no idea how to go about this any help would be appreciated?

解决方案



这篇关于[不是问题]为可以通过咖啡店的销售点系统销售的商品设计和实施C#类。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 23:36