Not. You need to include all function definitions inside the class block. If defining your functions in a separate structure makes you feel better, you can use the interface.
interface iBar
{
function foobar();
}
class cBar implements iBar
{
function foobar()
{
}
}
I would suggest just getting used to coding in a new way. It is easily coded sequentially in one language, but I think you are fighting a losing battle if you want to do the same in different languages.
source
share