C++ Class Object as a Parameter : i have this problem with getting class to pass as a parameter for another class constructor. Basically the code is like this:

    class A
    {
	    public:
		   int ID;
		   A(int getID)
           {
			   ID = getID;
		   }
    }

and i want to use that class A as a member of class B like this:

    class B
    {
	    public:
		    A someA;
		    A someB;
		    int number;
		
	    B(A ObjectA, A ObjectB, int getNumber)
	    {
		    someA = ObjectA;
		    someB = ObjectB;
		    number = getNumber;
	    }
    };

The errors are basically saying that there is no matching function to call B::B(). I dont know whats wrong with it. I have done similar things with vectors of object, so I thought why cant this thing works. Any inputs/correction is appreciated, thank you!

Sidenotes: I have tried adding a default constructor for B as suggested in another thread, but it ended up saying invalid use of B::B.