2 Replies - 378 Views - Last Post: 10 August 2009 - 12:36 PM Rate Topic: -----

#1 Sadaiy  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 107
  • Joined: 03-October 08

need some help with designing classes

Posted 10 August 2009 - 12:23 PM

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?

Is This A Good Question/Topic? 0
  • +

Replies To: need some help with designing classes

#2 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 289
  • View blog
  • Posts: 1,898
  • Joined: 25-October 06

Re: need some help with designing classes

Posted 10 August 2009 - 12:27 PM

View PostSadaiy, 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?

have a look at the tutorial Java for C++ programmers
http://pages.cs.wisc...8/JavaTutorial/
Was This Post Helpful? 0
  • +
  • -

#3 NeoTifa  Icon User is offline

  • ¿Dónde están mis pantalones?
  • member icon





Reputation: 1973
  • View blog
  • Posts: 14,489
  • Joined: 24-September 08

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1