When the army of a country takes over the legislative powers by usurping powers by force, and clamps down the functions of a judiciary, then that situation is called as military coup.