本文介绍了在控制台应用程序中为同一类创建不同的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个菜单驱动的控制台应用程序
1.员工详细信息
2.删除员工
3.编辑员工

要在我的应用程序中添加1个以上的雇员,我每次都必须创建同一雇员类的不同对象吗?

我无法弄清楚当用户选择第二个选项时如何删除员工,甚至如何编辑员工?任何建议?

i created a menu driven console application
1. employee details
2. delete employee
3. edit employee

to add more then 1 employee in my application do i have to create different objects of the same employee class every time??

i cant figure out how to delete the employee when user goes for the 2nd option and even how to edit the employee?? any suggestions??

推荐答案



这篇关于在控制台应用程序中为同一类创建不同的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 16:37