Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "part.h"
- using namespace std;
- int main()
- {
- Part Thing;
- float volume_Thing, weight_Thing, gravity;
- Thing.set_mass(3);
- Thing.set_name("Thing");
- Thing.set_color("Blue");
- Thing.set_price(24.21);
- Thing.set_density(3);
- Thing.get_mass();
- Thing.get_name();
- Thing.get_color();
- Thing.get_price();
- Thing.get_density();
- Thing.set_from_console();
- Thing.print();
- Thing.calculate_volume(volume_Thing);
- Thing.cost(4);
- Thing.calcuate_weight(weight_Thing);
- return 0;
- }
Add Comment
Please, Sign In to add comment