Free CompTIA ITF+ FC0-U61 Practice Question

You are working on a program where you have an object named 'Invoice' that represents billing for a service. You want to write a method that calculates the total cost including taxes. If we want to call this method to perform its task, which of the following is the correct option?

  • calculateTotal(invoice)

  • Invoice::calculateTotal()

  • calculateTotal.Invoice()

  • invoice.calculateTotal()

This question's topic:
CompTIA ITF+ FC0-U61 / 
Software Development Concepts
Your Score:

Check or uncheck an objective to set which questions you will receive.