using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 多态模拟移动硬盘和U盘 { class Program { static void Main(string[] args) { //用多态来实现U盘,Mp3,移动硬盘和电脑的对接,读取写入数据. MobileTool mt = new UDisk(…
一.RAID定义RAID(Redundant Array of Independent Disk 独立冗余磁盘阵列)技术是加州大学伯克利分校1987年提出,最初是为了组合小的廉价磁盘来代替大的昂贵磁盘,同时希望磁盘失效时不会使对数据的访问受损 失而开发出一定水平的数据保护技术.RAID就是一种由多块廉价磁盘构成的冗余阵列,在操作系统下是作为一个独立的大型存储设备出现.RAID可以充分发 挥出多块硬盘的优势,可以提升硬盘速度,增大容量,提供容错功能够确保数据安全性,易于管理的优点,在任何一块硬盘出…
多态---虚方法 (子类可以选择重写或者不重写) class Program { static void Main(string[] args) { Chinese cn1 = new Chinese("叶长种"); Chinese cn2 = new Chinese("王少伟"); Japanese jp1 = new Japanese("小野妹子"); American us = new American("勒布朗"…