#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    9
    Rep Power
    0

    Creating Classes With Java


    Hey guys i'm working on my own little java program and i was wondering about classes and how i would go about creating one. For the program i'm creating i will need,

    Define a Employee class which includes the instance variables employeeNumber (a String), employeeTitle (a String), employeeName (a String), employeeRole (a String) and payScaleLevel (a char).

    Implement a constructor for the Employee class which accepts the employee Number, employee title, employee name, employee role and pay scale level for the new Employee as parameters and stores the supplied information in the corresponding instance variables.


    How would i go about doing this? Cheers.
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,714
    Rep Power
    348
    What have you tried?
    See the tutorial for some ideas:http://docs.oracle.com/javase/tutori...pts/index.html

IMN logo majestic logo threadwatch logo seochat tools logo