锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
]]>
]]>
5 class A
6 {
7 private:
8 // a & b are private members of class A
9 int a;
10 double b;
11 public:
12 // initialize a & b as value 0
13 A() : a(0), b(0) {}
14
15 public:
16 // for display the value of a & b
17 int GetA();
18 double GetB();
//new function
virtual int f(){return 0;}
19 };
]]>
]]>