Question: Write code to instantiate/create two Bicycle objects: a default object (my_bike) and a non-default object (sister_bike). For the non-default object you may hard-code (or

Write code to instantiate/create two Bicycle objects: a default object (my_bike) and a non-default object (sister_bike). For the non-default object you may hard-code (or make up) the required parameters (brand, price and wheel size). No console input is needed. 2. (5 points) Declare two pointers to my bike and sister_bike objects. Pointer names must follow naming convention. Both pointers should be initialized to nullptr or NULL at declarations. Now assign the memory addresses of my_bike and sister_bike objects to those pointers. 3.(5points) Use pointer notation to assign sister_bike object to my_bike object in two different ways .by object assignment by mutators and/or behavior member functions
Step by Step Solution
3.47 Rating (154 Votes )
There are 3 Steps involved in it
Sol 1 In this we have to instantiate two bicycle objects one default and the other nondefault this can be achieved with the help of default and parameterized constructor C code include include using n... View full answer
Get step-by-step solutions from verified subject matter experts
