I created ERC-20 token, and send other ERC-20 token to created contract address.
Can I transfer that token?
I created ERC-20 token, and send other ERC-20 token to created contract address.
Can I transfer that token?
The transferred tokens are not "in your contract".
Their amount is registered in the other contract, with a mapping (address => uint256) balances.
You can view that amount via otherContract.balances[yourContractAddress], and you can transfer some or all of it by signing otherContract.transfer with the private key of yourContractAddress.
Unfortunately, the only way to retrieve the private-key of a deployed contract is by brute-force.
There are 2^256 different options, which is more or less the number of atoms in the known universe, so technically speaking, there is not enough energy in order to complete this kind of computation.
You should have added a designated functionmeans impossible now? – Heesu Cheon Apr 01 '19 at 09:57