Consider the following class.
public class Purchase
{
private double purchase;
private double tax;
public Purchase(double purchaseAmt, double taxAmt)
{
purchase = purchaseAmt;
tax = taxAmt;
}
public void totalAmount()
{
System.out.print(purchase + tax);
}
}
Assume that a Purchase object p has been properly declared and initialized. Which of the following code segments will successfully print the total purchase amount associated with p?