POV-Ray : Newsgroups : povray.programming : C++ inheritance puzzler : Re: C++ inheritance puzzler Server Time
29 Apr 2024 06:06:49 EDT (-0400)
  Re: C++ inheritance puzzler  
From: Christian Froeschlin
Date: 28 Nov 2010 18:22:29
Message: <4cf2e435$1@news.povray.org>
Le_Forgeron wrote:

> X & Y are both Policemen, but each one keep his/her/its gun protected.

But with this logic, the example Warp posted should also be forbidden.

I didn't try it myself but if the behavior is as described in this
thread it would mean protected access is restricted as follows:

Type/Instance This  Other

Parent        Ok    Fail

Same          Ok    Ok

Which I too find a bit odd.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.