Results 1 to 2 of 2

Thread: Is it possible?

  1. #1
    Join Date
    Apr 2010
    Posts
    77
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Is it possible?

    Hi guys

    I've been landed with a class A that contains a public pointer to class B.
    I can't change class B to be private.
    But is it possible to declare one of class B's methods as private within class A without declaring the whole of class B private?

    Thanks
    Jeff

  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Is it possible?

    make problematic method in class B private and add in class B friendship with class A.

  3. The following user says thank you to MarekR22 for this useful post:

    Jeffb (10th February 2012)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.