Write a program in c++ :Implement the classes and use inheritence

 

  • Every hard Disk has a capacity and Partition
  • Every CD has capacity ,title and writeable or not
  • Every DVD has capacity ,title
Use Inheritance Each class should have constructor and overload operator for every class.



Capactiy of medium :100
Capacity : 100 Number of Partition :2
Capacity :1000 Titke : Movie Writetable 1
Capacity :100 Title : Movie

0 Comments