Elite Coders Society
Hello Guest!
Join us here in this forum!
Please Log in or Register to access more feature in this site.
Start Learning!

† Copyright © 2011 - EliteCoders.forums.ag †


Start sharing and learning new skills about programming and design by building connections with other professional and students.
 
HomeForumPortalCalendarGallerySearchRegisterLog in
Elite Coders Partner Links

EliteCoders™ News!
Hello Guest!, Welcome in our forum. Be active!

Share | 
 

  Employee Java

View previous topic View next topic Go down 
AuthorMessage
avatar
Admin[dElmARk]
Forum Owner
Forum Owner

Posts : 78
EC-Points : 6304
Thanked : 21
Join date : 15/10/2011
Age : 22
Location : Philippines

Hacker's Info
Hacking Exp:
0/0  (0/0)
Hacker Type: White Hat
Hacking Title:

PostSubject: Employee Java   Fri Nov 25, 2011 11:14 am

StartEmployee.java
Code:
public class StartEmployee{
    public static void main(String []args){
          Employee del= new Employee();
          del.ln="Aguilar";
          del.Fn="John Delmark";
          del.Dept="Information Technology";
          del.pos="P.R.O";
          del.age= 16;
          System.out.println("Employee FName: "+ del.ln+"\nEmployee LName: "+ del.Fn+"\nDepartment: "+ del.Dept+"\nPosition: "+ del.pos+"\nAge: "+ del.age);

    }
}

Employee.java

Code:
public class Employee{
    String ln, Fn, Dept, pos;
    int age;
   
    public static void doWork(){
        System.out.println("Programming");
    }
    public String doBreak(){
        return "Eating";
    }
    public void doRest(){
        System.out.println("Resting at the park");
    }
    public int getWage(){
        return 1000;
    }
}

______________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile
avatar
RNPrincess
Head Moderator
Head Moderator

Posts : 17
EC-Points : 28
Thanked : 3
Join date : 06/12/2012
Location : Makati City

PostSubject: Re: Employee Java   Sat Dec 15, 2012 2:34 pm

Can you post the output for this program? I just want to see what does this code do, unfortunately i don't have JCreator with me. I'm having a hard time looking for site which offers free download of JCreator (full version not the free trial). Can you please post the output. Please. . .
Back to top Go down
View user profile
avatar
Admin
Head Admin
Head Admin

Posts : 64
EC-Points : 3148
Thanked : 6
Join date : 14/10/2011

PostSubject: Re: Employee Java   Sat Dec 15, 2012 2:36 pm

Please Add me on facebook.

[You must be registered and logged in to see this link.]

______________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile http://elitecoders.forums.ag
avatar
Admin
Head Admin
Head Admin

Posts : 64
EC-Points : 3148
Thanked : 6
Join date : 14/10/2011

PostSubject: Re: Employee Java   Sat Dec 15, 2012 2:39 pm

We'll talk it on fb chat. ^_^

______________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile http://elitecoders.forums.ag
avatar
RNPrincess
Head Moderator
Head Moderator

Posts : 17
EC-Points : 28
Thanked : 3
Join date : 06/12/2012
Location : Makati City

PostSubject: Re: Employee Java   Sun Dec 16, 2012 1:51 am

Ok, i'll add you as soon as I got home.
Back to top Go down
View user profile

Sponsored content



PostSubject: Re: Employee Java   

Back to top Go down
 

Employee Java

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Elite Coders Society :: Software Development :: Java Programming :: Object-Oriented Programming (OOP) Java-

Protected by Copyscape Duplicate Content Finder
Powered By EliteCoders™

Elite Coders Partner Links
GreyPhantomYour Link HereYour Link HereYour Link Here
Yahoo!GoogleFacebookForumotion