老兄,武器前后搞错了# Joke - 肚皮舞运动
s*u
1 楼
今天面试,纠缠了很多基本问题,一些我实在不知道,求解:
what is the difference between polymorphism and inheritance? inheritance can
already extend to different subclass, why we need the concept of
polymorphism?
why we need inheritance; before inheritance, we can also reuse the code, why?
why we need exception? why not if else check?
why we need generic? before Java5, no generic, all use Object, why generic?
why we need private/protected...? encapsulation or protection is not a
satisfied answer, his option is still protecting the information, a slightly
different way.
还有好多为什么要的问题,一直汗啊,然后说我对学语言没兴趣,不纠缠why的东西。
。。
what is the difference between polymorphism and inheritance? inheritance can
already extend to different subclass, why we need the concept of
polymorphism?
why we need inheritance; before inheritance, we can also reuse the code, why?
why we need exception? why not if else check?
why we need generic? before Java5, no generic, all use Object, why generic?
why we need private/protected...? encapsulation or protection is not a
satisfied answer, his option is still protecting the information, a slightly
different way.
还有好多为什么要的问题,一直汗啊,然后说我对学语言没兴趣,不纠缠why的东西。
。。