(DEV Question) Solidity constructor parameter list

Can someone list the parameter types accepted by a constructor in solidity .. in particular, can we do something like passing a contract in a constructor's parameter list, for example:

contract contractA{

constructor (uint id,) public{}

}

contract contractB{

contactA contractAReal;

constructor (contactA metaContractA) public{

contactAReal = metaContractA;

}

}

contact contractC{

function testFunction(uid id) public{

contractA metaContractA = new contractA();

contractB metaContractB = new contractB(metaContractA);

}

}

Advertisements