i am a C++ programmer, i know in C++ you create the interface (with abstract base class then with inherited classes), and each file is an interface (header files).. then you create the implentation of each header file (source files) THEN you create the main driver file (which is also a source file) can someone explain how you do all this in java?
my book talks about packages, libraries and classes, but it seems like they put everything in one file instead of splitting them up like you do in C++, am i missing something or am i correct?
need some help with designing classeshow do i do it in java?
Page 1 of 1
2 Replies - 378 Views - Last Post: 10 August 2009 - 12:36 PM
Replies To: need some help with designing classes
#2
Re: need some help with designing classes
Posted 10 August 2009 - 12:27 PM
Sadaiy, on 10 Aug, 2009 - 06:23 PM, said:
i am a C++ programmer, i know in C++ you create the interface (with abstract base class then with inherited classes), and each file is an interface (header files).. then you create the implentation of each header file (source files) THEN you create the main driver file (which is also a source file) can someone explain how you do all this in java?
my book talks about packages, libraries and classes, but it seems like they put everything in one file instead of splitting them up like you do in C++, am i missing something or am i correct?
my book talks about packages, libraries and classes, but it seems like they put everything in one file instead of splitting them up like you do in C++, am i missing something or am i correct?
have a look at the tutorial Java for C++ programmers
http://pages.cs.wisc...8/JavaTutorial/
#3
Re: need some help with designing classes
Posted 10 August 2009 - 12:36 PM
Maybe this old post can help. http://www.dreaminco...h...st&p=710223
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote








|