Results 1 to 4 of 4
  1. #1
    emily.m is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Question class and program

    Hi
    I didnít know where to ask this question.
    What are the differences between class and program?
    Please give me precise details.
    thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: class and program

    Is Google broken today?
    A class has a definite definition enclosed in {}s
    A program can consist of several classes.

  3. #3
    emily.m is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Default Re: class and program

    Oh, thank u very much, I didn’t know that!!!!
    I wanted to hear something else, like a class shouldn’t have main method and a program can call the class using main method!
    Google is fine and sais hi, but couldn’t find this sentence to be sure the main method can change the name (class and program)!!
    Thanks any way
    Last edited by emily.m; 02-12-2012 at 03:14 PM.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: class and program

    A class does not need a main method.

Similar Threads

  1. Two Class Program but No Output or Error
    By H0AX in forum New To Java
    Replies: 2
    Last Post: 12-09-2010, 06:27 AM
  2. Replies: 6
    Last Post: 05-18-2010, 05:11 PM
  3. how to program sound into your class
    By jaytee in forum New To Java
    Replies: 2
    Last Post: 03-13-2010, 09:42 PM
  4. Help with program class?
    By Boomer1 in forum New To Java
    Replies: 2
    Last Post: 11-22-2009, 10:10 AM
  5. clock class program
    By jvasilj1 in forum New To Java
    Replies: 12
    Last Post: 02-01-2008, 08:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •