hello,
you're wondering which one is better
it's complicated because you can't tell which one is better but you can clearly see class is bigger than function.
function is a part of class
class...