private inheritance