reset password
Author Message
ed12al
Posts: 5
Posted 21:33 Mar 06, 2015 |

What does the default constructor do? Can we have a copy constructor?

303496263
Posts: 68
Posted 22:20 Mar 06, 2015 |

The default constructor does not do anything. It just makes an empty object.

You will then read in data into your image object via the << operator.

For the copy constructor part, I do not see why you would need one in your program. Is there any reason you want to implement one?

ed12al
Posts: 5
Posted 22:40 Mar 06, 2015 |

Oh, never mind. I thought we cannot change the PPMImage object. Thank you.

303496263
Posts: 68
Posted 23:30 Mar 06, 2015 |

Yep.