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()
invoice.calculateTotal()
calculateTotal(invoice)