Can you please share example to clearly indicate when private and protected inheritance is used?