CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: Friend class

Threaded View

  1. #1
    Join Date
    Nov 2008
    Posts
    2

    Friend class

    I would like to declare Estimator class a friend of YLC2Plot class. Any ideas??
    Thanks in advance.
    Regards: Shabbar Abbas
    i am using sun c++ 5.9 ( CC )


    *********************************************/
    #ifndef _ESTIMATOR_H
    #define _ESTIMATOR_H

    template<typename RadarType, typename FilterType>
    class IMM: public RadarType, public FilterType {
    public:
    //....
    protected:
    //...
    private:
    //..

    };

    #endif
    /******************************************/

    #ifndef _YLC2PLOT_H
    #define _YLC2PLOT_H


    #include "Estimator.h"

    class YLC2Plot : public BasePlot {
    public:
    friend IMM;

    protected:
    //....

    private:
    //.....
    };


    #endif /* _YLC2PLOT_H */
    Last edited by sza110; November 6th, 2008 at 11:53 PM. Reason: sorry, actually i want IMM class to be friend of YLC2Plot class

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured