Final answer:
In order for a crime to be considered burglary, the intent to commit a felony must be present at the time of entry into a building or structure.
Step-by-step explanation:
In order for a crime to be considered burglary, there are typically two elements that must be present: breaking and entering into a building or structure, and doing so with the intent to commit a felony or theft. The specific laws regarding burglary can vary by jurisdiction, but generally the intent to commit a felony must be present at the time of entry.
A later formed intent to commit a felony after entry would not typically qualify for burglary. For example, if someone enters a building without the intent to commit a crime, but then decides to commit a felony after entry it would not be considered burglary. However the person could still be charged with the felony they intended to commit.