Changeset 823
- Timestamp:
- Oct 8, 2003, 9:29:12 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/testcase/456/class.cpp ¶
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r822 r823 11 11 12 12 public: 13 static char *pszPublicStatic; 14 static long lPublicStatic; 15 int iPublic; 16 13 17 ParentClass() 14 18 { 15 iProtected = 1; 16 iPrivate = 2; 19 iPublic = 1; 20 iProtected = 2; 21 iPrivate = 3; 17 22 } 18 23 19 24 virtual ~ParentClass() 20 25 { 21 iProtected = -1; 22 iPrivate = -2; 26 iPublic = -1; 27 iProtected = -2; 28 iPrivate = -3; 23 29 } 24 30 … … 30 36 virtual void set(int i) 31 37 { 32 iProtected = i; 33 iPrivate = i + 1; 38 iPublic = i; 39 iProtected = i + 1; 40 iPrivate = i + 2; 34 41 } 35 42 … … 41 48 char *ParentClass::pszPrivateStatic = "PrivateStatic"; 42 49 char *ParentClass::pszProtectedStatic = "ProtectedStatic"; 50 char *ParentClass::pszPublicStatic = "PublicStatic"; 51 long ParentClass::lPublicStatic = 42; 43 52 44 53 class ChildClass : public ParentClass -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.