With friend classes, one class gives another the right to access its nonpublic members. Partial classes just allow you to define one class in two separate files.