Why would declaring object member variables with blocks be familiar to Java programmers?
# Java class Car { public String name; public int price; public int speed; } # Zydeco class Car { has name ( type => Str ); has price ( type => Int ); has speed ( type => Int ); }
Where would you add blocks to the Zydeco example to make it more like Java?
In reply to Re^3: oop, variable that counts the number of objects created
by tobyink
in thread oop, variable that counts the number of objects created
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |