Answer: saying the opposite thing usually for humor
Here is an example of irony:
Denise threw the bottle on the florr while John was looking. John asked "Did you drop the bottle?" Denise replied "No, I thoguht you were looking" with irony.
I am almost 100 percent positive about the theme being "Corporal punishment is always necessary to maintain discipline"
Ponyboy is restricted to bed rest for a week after he wakes up from his concussion. He finds a picture of Bob the Soc in Sodapop’s high school yearbook. Bob’s grin reminds him of Sodapop’s. Ponyboy wonders if Bob’s parents hate him, saying he prefers their hatred to their pity. Looking at the photograph and remembering conversations with Cherry and Randy, Ponyboy concludes that Bob was cocky, hot-tempered, frightened, and human.
Randy arrives at the house to talk to Ponyboy and behaves with shocking insensitivity. Not thinking of what Ponyboy has suffered, Randy says he is worried about being associated with the violence. They discuss the hearing scheduled for the next day. Ponyboy, in a delirious state, says that he killed Bob himself and that Johnny is still alive. Darry asks Randy to leave.
Hope this is what u were talking about:)