identify 8 Errors in the following code give a reason why .
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
identify 8 Errors in the following code
give a reason why .

Transcribed Image Text:3
class Datal
4
friend void F11(Datal d);
public:
Data1(){count+;}
int F1()const;
static int F8();
10 static int F9();
11 static Datal • F4();
12 void F3(const int & val);
13 int GetCount ();
14 private:
5
6
7
8
9
15 int age, years;
16 static int count;
17 );
18 class Data2{
19 public:
20 Data2(Datal);
21 void SetDatal(Datal);
22 private:
23 Datal ob;
24 const int z;
25 };
26 int Datal::F8()
27 {
return age;}
28
29 int Datal::F9()
30 (
return count;}
31
32 Datal • Datal::F4()
33 {
return this;}
34
35 void Datal::F3(const int & val)
36 {
val++; years = val;}
37
38 int Datal::GetCount ()
39 {
return count;
40
41 int Datal::F1()const {
42 age++; return age; };
43
44 Data2::Data2(Datal obj) :ob(obj){ }
45
46 void
47 {
48
Data2::SetDatal(Datal g)
z = 500+g. GetCount(); }
49 void F11(Datal d)
se { int x - d.age; }
51
52 void F12(Datal d2)
53 {
54
int x - d2.age;}
55 int main()
56 {
57 Data2 03;
58 return e; }
Datal ol,
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 8 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY