I am having problems making a class for a project in Haxe. I have followed the documentation online(even pasting their code at one point). Not sure if I need to import something to get this to work or what. I am receiving this error
source/PlayState.hx:4: characters 8-13 : Expected identifier
Here is my code for the class
class PizzaOrder{
var pId:Int;
var pSauce:String;
var pBake:String;
var pTopping:Array<String>;
public function new(pId, pSauce,pBake, pTopping){
this.pId = pId;
this.pSauce = pSauce;
this.pBake = pBake;
this.pTopping = pTopping;
}
public function displayOrder(pId){
}
public function validateOrder(pId){
}
}
Thanks a lot for the help. Line 4 was my bad, I was playing around with import got the error there, and used that for my post (same error different line!) all working now!