Noobiest question ever about base entities

Hey, if you base an entity off another entity, is that code run on the entity that is using the base?

all the code from all the files, init.lua, and whatever is included blah blah blah

When you base one entity off another, it will inherit all of the functions of the old one. So if Entity 1 bases off Entity A, Entity 1 can override the function ENT:Explode(), which Entity A would call through Think. Because Entity 1 overrid the Explode function, the Think function will use Entity 1’s explode and not Entity A’s explode.