class User
{
...
fn isAdmin() : bool{
return value;
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if company {
return false
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if company {
return false
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if company {
if 'DE' == country{
return true
}else{
return false
}
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if company {
if 'DE' == country{
return true
}else{
return false
}
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if 'DE' == country{
return true
}
if company {
return false
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if 'DE' == country{
return true
}
if company {
return false
}
return true
}
...
}
class Customer
{
...
fn shouldChargeVat(){
if company {
if 'DE' == country{
return true
}else{
return false
}
}
return true
}
...
}
Miro Svrtan
@msvrtan
miro (at) mirosvrtan.me
@msvrtan