What is the proper way to override a function on a plugin

How do I override a function? I actually wanted to see if I could do it through this Code Snippets plugin but I don't know whether to use the same function name and whether to use add_action, remove_action, add_filter, etc. etc.