inerithance and sub classes, what's the different?
in
Programming Questions
•
9 months ago
like the title, my question is:
what's the different between this code:
what's the different between this code:
- class system{
//some code...
}
class start extends system{
//some code...
}
class stop extends system{
//some code...
}
class update extends system{
//some code...
}
class draw extends system{
//some code...
}
- class system{
class start{
//some code...
}
class stop{
//some code...
}
class update{
//some code...
}
class draw{
//some code...
}
}
1