inheritance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • junw2000@gmail.com

    inheritance

    how to prevent a class to be derived? Thanks

  • mast2as@yahoo.com

    #2
    Re: inheritance


    junw2000@gmail. com wrote:
    how to prevent a class to be derived? Thanks
    I imagine you can make its constructor & destructor private ...

    Comment

    • Sumit Rajan

      #3
      Re: inheritance

      junw2000@gmail. com wrote:
      how to prevent a class to be derived? Thanks
      >
      See:


      Regards,
      Sumit
      --
      Sumit RAJAN <sumit.rajan@ge oconcept.com>

      Comment

      • Ron Natalie

        #4
        Re: inheritance

        mast2as@yahoo.c om wrote:
        junw2000@gmail. com wrote:
        >how to prevent a class to be derived? Thanks
        >
        I imagine you can make its constructor & destructor private ...
        >
        Has no effect on derivation.

        Comment

        • roods

          #5
          Re: inheritance

          Can you explain what you mean by "has no effect on derivation"? How can
          the dervied class call the base classes ctor if it is private?

          Just curious.


          Ron Natalie wrote:
          mast2as@yahoo.c om wrote:
          junw2000@gmail. com wrote:
          how to prevent a class to be derived? Thanks
          I imagine you can make its constructor & destructor private ...
          Has no effect on derivation.

          Comment

          Working...