C++ Nested class functions access : im having a little problem access Nested Class functions.
i created a function in the nested class that return one of the fields of the nested class (class B) , and i want use this field in Class A functions.
it looks like this:

    class A{
    int x,y,z
    
      class B{
      public:
      char* name;
      char* ReturnName();
      }
    public:

    void function1();
    }
    
    //functions
    char* A::B::ReturnName(){
         return this->Name;
    }
    //main problem:
    void A::function1(){
         char* NAME=A::B::ReturnName();
    }






how do i access to ReturnName(); funtion (from class B) while im inside a function of Class A?

hope its clear, thanks!