-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLine_Task2.h
More file actions
71 lines (57 loc) · 1.14 KB
/
Line_Task2.h
File metadata and controls
71 lines (57 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/** Line class inherited from Shape class.
*
* #include "Line_Task2.h" <BR>
* -llib
*
*/
#ifndef LINE_TASK2_H
#define LINE_TASK2_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Shape_Task2.h"
// Line class definition
class Line : public Shape {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Line(char* = "white", int = 0, float = 0.0);
/** Copy constructor.
*/
Line(const Line&);
/** assignment operator.
*/
Line& operator =(const Line&);
// Use compiler-generated destructor.
// ~Line();
// OPERATIONS
/** Pure virtual function that draws Line.
*
* @param void
*
* @return void
*/
void Draw();
// ACCESS
// setters
void SetLength(float = 0.0);
void SetLine(char* = "white", int = 0, float = 0.0);
/**
# @overload void SetLine(float = 0.0);
*/
void SetLine(float = 0.0);
/**
# @overload void SetLine(const Line& aLine);
*/
void SetLine(const Line& aLine);
// getters
float GetLength()const;
const Line& GetLine()const;
private:
// DATA MEMBERS
float mLength;
};
// end class Line
#endif
// _LINE_TASK2_H_