As I read in thinking in java,
The interface and inner class provide more sophisticated ways to organize and manage objects in your system. C ++, for example, does not contain such mechanisms, although a smart programmer can imitate them.
Is it true that a C ++ programmer supports functions that java owns, for example. interface and limit yourself so as not to cross the border, for example. including a non-static-finite (non-constant) data element in the simulation interface?
Are these Java features a natural way to develop software. So if C ++ programmers could, would they have to code and think like a Java programmer?
EDIT . I know that each programming language has its own characteristics and scope, and the design of the programming language makes compromises. But what I want to know is something Java, represented, for example, by an interface, the best way to help / get a programmer to think through and create a good class design, so C ++ programmers would like to imitate some of these functions?
thanks.
source
share