Here is the project that I have been given:
Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc.). Include data values that describe various attributes of the electronics, such as the weight, cost, power usage, and name of the manufacturer. Include methods that are named appropriately for each class and that print an appropriate message. Create a driver class to instantiate and exercise several of the
classes.
I have done a previous one but I have no clue on where to start designing this. If I could get any tips on how to incorporate inheritance in this project it would be of great help. If I could have someone to outline the first part of the code/class to get me started, I would be perfect. Also, if you guys have any tips for future references to help me with projects of this nature. Like should I create all my classes first or finish a class one by one.
Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc.).
From this you know the names of your classes. If you want to use a super class and utilize similair methods among classes that would be a good idea. Maybe Technology Equipment.
Include data values that describe various attributes of the electronics, such as the weight, cost, power usage, and name of the manufacturer.
Here you’ve been given some sample instance variables that you could utilize in your superclass or sub classes. Make sure to include mutators and accessors for these attributes if in the super class.
Include methods that are named appropriately for each class and that print an appropriate message. Create a driver class to instantiate and exercise several of the classes.
This will just be a class with a main method to instantiate your objects from the super and subclasses
As far as an approach to answering this question I would start out by figuring out what classes I want. So think of a finite super class and then a couple sub classes. Then start to think about your attributes for the super and sub classes.
EDIT:
This is an EXTREMEMLY rough start. You will have to expand on something like this with more attributes mutators and accessors. And then add your subclasses.