GeometricObject

GeometricObject - : color(object.color) {} { //

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// this file contains the definition of the class GeometricObject / #include "Constants.h" #include "GeometricObject.h" # // ---------------------------------------------------------------------- default constructor c GeometricObject::GeometricObject(void) : color(black) {} { // ---------------------------------------------------------------------- copy constructor c
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: : color(object.color) {} { // ---------------------------------------------------------------------- assignment operator a GeometricObject& G GeometricObject::operator= (const GeometricObject& rhs) { G if (this == &rhs) return (*this); r color = rhs.color; c return (*this); } // ---------------------------------------------------------------------- destructor d GeometricObject::~GeometricObject (void) {}...
View Full Document

This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

Ask a homework question - tutors are online