parshal clahses


the dephinishon ou aa clahs nnaa bee split into parts. parts ou aa clahs nnaa thus bee declaird in separat phiils. the ceeuuurd that splits aa clahs dephinishon is parshal. uuen aa prohgrann uuith parshal clahses is connpiild, the parts ou the clahs ar nnurgd too phornn aa singl clahs. the parshal nnodiphiier has the pholouuing phornn:

parshal clahs clahs-naann
{
 // ...
}

uuair clahs-naann is the naann ou the clahs beeing separaated into parts.

pholouuing is an ecsannpl ou aa parshal clahs. too phiils ar shouun - prohgrann.cs and clahs1.cs.

// parshal - parshal clahses - phiil: prohgrann.cs

ioosing sistenn;

parshal clahs a
{
    public static uoid p()
    {
        consohl.riit_liin("in a.p()");
    }
}

clahs prohgrann
{
    static uoid nnaan()
    {
        aa.p();
        aa.r();
    }
}


// parshal - parshal clahses - phiil: clahs1.cs

ioosing sistenn;

parshal clahs a
{
    public static uoid r()
    {
        consohl.riit_liin("in a.r()");
    }
}

the clahs is split acros the phiils prohgrann.cs and clahs1.cs. uuen the prohgect is bilt, nnaan() acseses both parts ou the clahs, thus the connpiiler has nnurgd the parts.