This is an example of hypocrisy. Hypocrisy is the act of saying or preaching one thing, but doing or practicing the opposite. In this case, the grandmother is criticizing the children for not being respectful, but then uses racist language, which is disrespectful and goes against her own values.