Pointer-reference-class assignment
===

Is there something wrong with the following in terms of syntax for the following scenario:

If I have class Foo and a class Foo1 and my class Foo has a private member of type Foo1:

.h file:

    class Foo{
      Foo1 *oFoo;
    public:
      Foo(Foo1 &Fooy);
    }

.cc file:

    Foo::Foo(Foo1 &Fooy){
      Foo = &Fooy;
    }

Is the assignment in the above constructor legal? I am new to C++ please assist in any way you can as soon as you can. 

Thank You!!
MyName.