You need to sign in to do that
Don't have an account?
Vigneshwaran Loganathan
Hi I am new to salesforce, as you can see this is a simple one, i could not understand what is tha unexpected token here, help me out :( Error: Compile Error: unexpected token: public at line 5 column 2
public interface PurchaseOrder {
Double discount();
}
public class CustomPurchaseOrder implements PurchaseOrder {
static final double DEFAULT_DISCOUNT = .05;
public Double discount() {
return DEFAULT_DISCOUNT;
}
}
Double discount();
}
public class CustomPurchaseOrder implements PurchaseOrder {
static final double DEFAULT_DISCOUNT = .05;
public Double discount() {
return DEFAULT_DISCOUNT;
}
}
All Answers