C ++ programmer mimic Java functions?

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.

+5
source share
9 answers

, "" Java . , ( , ), Java.

++, Java . , , .

C++ C++. :

  • . , , . GC- , ++, , .
  • , . , ? , , , ?

, ++, :

  • ++ . , .
  • ++ , , - . , IIterator, , "", , . "" , . "" , . , ( C) , typedef. .

, ++ . " Java". . ++ Java.

java

Java- ++.;)

+11

, :

C++ , Java?

. , C++. ++ , Java ( ). , , Java ( Pascal Fortran) ++.

( , , ...!)

+34

++ : , . ( itowlson .)

+17

Java. , , Java "RAII", ++. -.

+14

, ++ Java , Java , ++ - . , ++ , , , . Java , , .

, ++, Java, .

+2

++ ( + ) . Java ( + + ); , , ++, (, ). , Java " " .

: , ++ ?

+2

, , , , C/++ , " Java", Java " C/++"; . , , "- ".

- , , , .. , , . , , , , , " Java", " C/++" "# ".

+1

Java, ++. , Java , ++ - . Java parent.this, ++ . C ++ DIY, Java.

, , . , Java " ", ++. , Java, " ", ++ .

Java ", Java", , , Java...

+1

, , .

20:33:27, -,

  • () ++
  • ...,
  • ... , ++

, .

:

0

All Articles