(a) A, with a guilty intention, abets a child or a lunatic to commit an act which would be an offence, if committed by a person capable by law of committing an offence, and having the same intention as A. Here A whether the act be committed or not, is guilty of abetting an offence.