Changeset 823


Ignore:
Timestamp:
Oct 8, 2003, 9:29:12 PM (22 years ago)
Author:
bird
Message:

more statics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/testcase/456/class.cpp

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r822 r823  
    1111
    1212public:
     13    static char *pszPublicStatic;
     14    static long  lPublicStatic;
     15    int      iPublic;
     16
    1317    ParentClass()
    1418    {
    15         iProtected = 1;
    16         iPrivate = 2;
     19        iPublic = 1;
     20        iProtected = 2;
     21        iPrivate = 3;
    1722    }
    1823
    1924    virtual ~ParentClass()
    2025    {
    21         iProtected = -1;
    22         iPrivate = -2;
     26        iPublic = -1;
     27        iProtected = -2;
     28        iPrivate = -3;
    2329    }
    2430
     
    3036    virtual void set(int i)
    3137    {
    32         iProtected = i;
    33         iPrivate = i + 1;
     38        iPublic = i;
     39        iProtected = i + 1;
     40        iPrivate = i + 2;
    3441    }
    3542
     
    4148char *ParentClass::pszPrivateStatic = "PrivateStatic";
    4249char *ParentClass::pszProtectedStatic = "ProtectedStatic";
     50char *ParentClass::pszPublicStatic = "PublicStatic";
     51long  ParentClass::lPublicStatic = 42;
    4352
    4453class ChildClass : public ParentClass
Note: See TracChangeset for help on using the changeset viewer.