Third degree is presently officially disapproved by the law though it is surreptitiously used.
3rd degree interrogation is resorting to physical torture by police. Interrogation of a prisoner by the police involving the infliction of mental or physical suffering for bringing about a confession or to extract information
police procedures can be classified into 1) The arrest is the first degree, 2) The transportation to jail is the second degree, and 3) The interrogation is the third degree.
In India, even slapping a person for extracting information or confession is an offence under Indian Penal Code (Sec. 370)
One more aspect of Indian laws is that, most of the prevailing laws were enacted under British rule. At that time the officers were either Britishers or Anglo Indians and constabulary was the Natives so for entering into the good books of the officers, constables resorted to unlawful methods of interrogation like 3rd degree. To avoid this provisions were made in Indian Evidence Act. Sec 25 and 26 make the statement recorded by police inadmissible in court unless witness appears before the court and deposes according to the statement and gets subjected to cross examination by defense lawyer.
You have mentioned that a police constable behaved rudely with you, it will not come under third degree procedure.
If you want to behave rudely with a police next time, then you would be inviting unnecessary trouble for yourself, because the police will not accept the domination or rude behavior by the general public against them at any cost or any circumstances, hence you may decide based on your prudence.