Is it possible to write code like this?
int $x = 6;
str $y = "hello world";
bool $z = false;
MyObject $foo = new MyObject();
And is it possible to define functions like this?
public int function getBalance()
{
return 555; //Or any numeric value
}
Can someone please explain if this is possible?