PHP: Namespce and calling one class into other : I have two classes, `Class1` and `Class2` which are under namespace `myNameSpace`

I want to create instance of `Class2` in class` and I am getting error in implementing file `Class 'myNameSpace\Class2' not found in.. `. Code given below:


**Class1.php**

    namespace myNameSpace {
    
        use myNameSpace\Class2;

    class Class1
    {
      public function myMethod()
        {
         $obj = new Class2();
        }

}

**call.php**

    namespace myNameSpace {
        include 'Class1.php';
        error_reporting(E_ALL);
        ini_set('display_errors',1);
    
        use myNameSpace\Class1;
        $o = new Class1();
        $o->myMethod();
    
    }
