contract ContractFoo { uint value; mapping (address=>uint) somemapping; //not accessible because there is no getter function set(uint _value) public { value = _value; } function get() public constant returns (uint) { return value; } } contract ContractBar { ContractFoo othercontract; function ContractBar(address inputContract) { othercontract = ContractFoo(inputContract); } function getOtherContractValue()public constant returns (uint) { return othercontract.get(); } }