POV-Ray : Newsgroups : povray.off-topic : Teach yourself C++ in 21 days : Re: Day 6 Server Time
29 Jul 2024 18:24:23 EDT (-0400)
  Re: Day 6  
From: Warp
Date: 18 Apr 2012 07:15:14
Message: <4f8ea241@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> The benefit of class over a simple struct/collection is in the
> private/protected parts, and the mandatory centralisation of the
> prototypes of all related functions (until you start playing with
> friend, but that's another story).

  Well, classes also support inheritance and dynamic binding, which
is sometimes useful.

-- 
                                                          - Warp


Post a reply to this message

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