The only difference should be the template given to you when you start out. a code file will give you an empty file to start with while a class has a small template for you to modify, there is nothing going on behind the curtains. in my point of view code file is empty file to add class file is like a template to edit for our requirement.