Which of these is the correct way to start creating a method called update inside a class?

update()function update()

When adding a method to a class, we don't need the function keyword.