there is error that i could not figure out why? can you tell me

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

there is error that i could not figure out why? can you tell me

* C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp - Dev-C++ 5.11
O X
File Edit Search View Project Execute Tools AStyle Window Help
TDM-GCC 4.9.2 64-bit Release
(globals)
Project Classes Debug
learning.cpp
1
#include <iostream>
2
3
using namespace std;
5
class Rectangle
public:
int area();
int getlength() //1 provide function method
{
return length;
}
int getwidth() //1 provide funtion method
{
return width;
}
Rectangle (int, int); //alternate constructor (came with parameter)
Rectangle (); //default constructor
~Rectangle(); //default destructor
private:
int length;
int width;
7
8
10 E
11
12
13
14 E
15
16
17
18
19
20
21
22
};
class Box:public Rectangle
25 E {
23
24
public:
int totalSurfaceBox;
Void setHeight(int h)
{height=h;}
void displaydimension();
Воx ();
Box ();
private:
int height;
};
Box::Box ()
26
27
29
30
31
32
33
34
35
36
88 Compiler (7)
Resources dh Compile Log V Debug A Find Results
Close
Line
Col
File
Message
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
28
2
[Error] 'Void' does not name a type
40
28
[Error] no 'void Box:displayDimension0' member function declared in class 'Box'
47
26
[Error] no 'int Box::totalSurfaceBox0' member function declared in class 'Box'
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
In function 'int main(0':
Line: 28
Col: 5
Sel: 0
Lines: 62
Length: 1169
Insert
Done parsing in 0.016 seconds
3:50 PM
Type here to search
DEV
32°C Rain
G 4) O ENG
IMI
12/12/2021
Transcribed Image Text:* C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp - Dev-C++ 5.11 O X File Edit Search View Project Execute Tools AStyle Window Help TDM-GCC 4.9.2 64-bit Release (globals) Project Classes Debug learning.cpp 1 #include <iostream> 2 3 using namespace std; 5 class Rectangle public: int area(); int getlength() //1 provide function method { return length; } int getwidth() //1 provide funtion method { return width; } Rectangle (int, int); //alternate constructor (came with parameter) Rectangle (); //default constructor ~Rectangle(); //default destructor private: int length; int width; 7 8 10 E 11 12 13 14 E 15 16 17 18 19 20 21 22 }; class Box:public Rectangle 25 E { 23 24 public: int totalSurfaceBox; Void setHeight(int h) {height=h;} void displaydimension(); Воx (); Box (); private: int height; }; Box::Box () 26 27 29 30 31 32 33 34 35 36 88 Compiler (7) Resources dh Compile Log V Debug A Find Results Close Line Col File Message C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp 28 2 [Error] 'Void' does not name a type 40 28 [Error] no 'void Box:displayDimension0' member function declared in class 'Box' 47 26 [Error] no 'int Box::totalSurfaceBox0' member function declared in class 'Box' C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp In function 'int main(0': Line: 28 Col: 5 Sel: 0 Lines: 62 Length: 1169 Insert Done parsing in 0.016 seconds 3:50 PM Type here to search DEV 32°C Rain G 4) O ENG IMI 12/12/2021
* C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp - Dev-C++ 5.11
O X
File Edit Search View Project Execute Tools AStyle Window Help
dh a
TDM-GCC 4.9.2 64-bit Release
(globals)
Project Classes Debug
learning.cpp
int totalSurfaceBox;
Void setHeight(int h)
{height=h;}
void displaydimension();
Воx ();
Box();
private:
int height;
27
29
30
31
32
33
34
35
Box::Box ()
{height=0;}
Box::~Box ()
{height=0;}
void Box::displayDimension()
36
37
38
39
40
41 E {
cout<< "Length: " « get.length <« endl;
cout<< "Width: " « get.width <« endl;
42
43
44
cout<< "Height: " << height <« endl;
}
int Box::totalSurfaceBox()
45
46
47
48 E {
return ((2 * getlength() * getwidth()) + (2 * getlength()
* height()) + (2 * getwidth() * height));
}
int main()
53 E {
49
50
51
52
Box box1;
box1.setHeight(6);
box1.displayDimension();
cout <«"Surface Area of Box: " ;
cout « box1.totalSurfaceBox ()<< endl;
system ("pause");
return e;
54
55
56
57
58
59
60
61
}
62
88 Compiler (7)
Resources dh Compile Log V Debug 3 Find Results
Close
Line
Col
File
Message
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
28
2
[Error] 'Void' does not name a type
40
28
[Error] no 'void Box:displayDimension0' member function declared in class 'Box'
47
26
[Error] no 'int Box::totalSurfaceBox0' member function declared in class 'Box'
C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp
In function 'int main(0':
Line: 28
Col: 5
Sel: 0
Lines: 62
Length: 1169
Insert
Done parsing in 0.016 seconds
3:50 PM
Type here to search
DEV
32°C Rain
G 4) O ENG
IMI
12/12/2021
Transcribed Image Text:* C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp - Dev-C++ 5.11 O X File Edit Search View Project Execute Tools AStyle Window Help dh a TDM-GCC 4.9.2 64-bit Release (globals) Project Classes Debug learning.cpp int totalSurfaceBox; Void setHeight(int h) {height=h;} void displaydimension(); Воx (); Box(); private: int height; 27 29 30 31 32 33 34 35 Box::Box () {height=0;} Box::~Box () {height=0;} void Box::displayDimension() 36 37 38 39 40 41 E { cout<< "Length: " « get.length <« endl; cout<< "Width: " « get.width <« endl; 42 43 44 cout<< "Height: " << height <« endl; } int Box::totalSurfaceBox() 45 46 47 48 E { return ((2 * getlength() * getwidth()) + (2 * getlength() * height()) + (2 * getwidth() * height)); } int main() 53 E { 49 50 51 52 Box box1; box1.setHeight(6); box1.displayDimension(); cout <«"Surface Area of Box: " ; cout « box1.totalSurfaceBox ()<< endl; system ("pause"); return e; 54 55 56 57 58 59 60 61 } 62 88 Compiler (7) Resources dh Compile Log V Debug 3 Find Results Close Line Col File Message C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp 28 2 [Error] 'Void' does not name a type 40 28 [Error] no 'void Box:displayDimension0' member function declared in class 'Box' 47 26 [Error] no 'int Box::totalSurfaceBox0' member function declared in class 'Box' C:\Users\huawei\Desktop\CPM213 LAB\learning.cpp In function 'int main(0': Line: 28 Col: 5 Sel: 0 Lines: 62 Length: 1169 Insert Done parsing in 0.016 seconds 3:50 PM Type here to search DEV 32°C Rain G 4) O ENG IMI 12/12/2021
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Matrix multiplication
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education