J
John Flynn
hi all
i'm going to be quick i have an assignment due which i have no idea how to
do. i work full time so i dont have the time to learn it and its due date
has crept up on me ..
As follows:
Objectives
The purpose of this assignment is to have you practice the design of
object-oriented classes, including one or more of the following concepts
a.. encapsulation
b.. class/static variables
c.. constructors, mutators, inspectors
d.. operators
Task
Implement the classic cartesian 2D Point class. You can find the point.h
file in Files directory. Your task is to implement this class (point.cpp)
and to write a test program for it (pointTest.cpp). The test program must
a.. test the constructors (default, other, copy) and the output operator
b.. test the assignment operator
c.. test the inspectors
d.. test the mutators
e.. test the input operator
f.. test the equality operators
g.. test the addition and multiplication operators
h.. test the distance function
i know that this would be a breeze for most as this is a first year subject.
So if anyone can help me out please email me for the rest of the
question/example..
thanks in advance
p.s. please only those who are willing to help me contact me as i can
imagine the barrage of posts i'll be receiving from self important
individuals having a go at me for not doing it myself.
i know i wont be learning anything but i have no choice at this stage
i'm going to be quick i have an assignment due which i have no idea how to
do. i work full time so i dont have the time to learn it and its due date
has crept up on me ..
As follows:
Objectives
The purpose of this assignment is to have you practice the design of
object-oriented classes, including one or more of the following concepts
a.. encapsulation
b.. class/static variables
c.. constructors, mutators, inspectors
d.. operators
Task
Implement the classic cartesian 2D Point class. You can find the point.h
file in Files directory. Your task is to implement this class (point.cpp)
and to write a test program for it (pointTest.cpp). The test program must
a.. test the constructors (default, other, copy) and the output operator
b.. test the assignment operator
c.. test the inspectors
d.. test the mutators
e.. test the input operator
f.. test the equality operators
g.. test the addition and multiplication operators
h.. test the distance function
i know that this would be a breeze for most as this is a first year subject.
So if anyone can help me out please email me for the rest of the
question/example..
thanks in advance
p.s. please only those who are willing to help me contact me as i can
imagine the barrage of posts i'll be receiving from self important
individuals having a go at me for not doing it myself.
i know i wont be learning anything but i have no choice at this stage