Main.java:12: error: cannot find symbol
function DemoObject;
^
symbol: class function
location: class Ideone
Main.java:14: error: non-static variable this cannot be referenced from a static context
this.fName = "Fred";
^
Main.java:14: error: cannot find symbol
this.fName = "Fred";
^
symbol: variable fName
Main.java:15: error: non-static variable this cannot be referenced from a static context
this.lName = "Feuerstein";
^
Main.java:15: error: cannot find symbol
this.lName = "Feuerstein";
^
symbol: variable lName
Main.java:17: error: non-static variable this cannot be referenced from a static context
this.greet = function(frage);
^
Main.java:17: error: cannot find symbol
this.greet = function(frage);
^
symbol: variable greet
Main.java:17: error: cannot find symbol
this.greet = function(frage);
^
symbol: variable frage
location: class Ideone
Main.java:19: error: cannot find symbol
var name = this.fName + " " +this.lName;
^
symbol: class var
location: class Ideone
Main.java:19: error: non-static variable this cannot be referenced from a static context
var name = this.fName + " " +this.lName;
^
Main.java:19: error: cannot find symbol
var name = this.fName + " " +this.lName;
^
symbol: variable fName
Main.java:19: error: non-static variable this cannot be referenced from a static context
var name = this.fName + " " +this.lName;
^
Main.java:19: error: cannot find symbol
var name = this.fName + " " +this.lName;
^
symbol: variable lName
Main.java:20: error: incompatible types: unexpected return value
return "Hallo" + name + "!" + frage;
^
Main.java:20: error: cannot find symbol
return "Hallo" + name + "!" + frage;
^
symbol: variable frage
location: class Ideone
Main.java:24: error: cannot find symbol
var wilma = new DemoObject();
^
symbol: class var
location: class Ideone
Main.java:24: error: cannot find symbol
var wilma = new DemoObject();
^
symbol: class DemoObject
location: class Ideone
17 errors