Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 11 of 11

Thread: help me my test just now! urgent!

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help me my test just now! urgent!

    Write a complete program based on the class diagram above (in .pdf)labTest1.pdf. You are required to show inheritance concept inside your program. Use the following information to produce the code

    example:

    public class Student
    {
    protected String matricNo;
    protected String name;
    protected String course;

    public void Student (String matricNo, String name, String course)
    {

    }

    public void Display()
    {

    }

    }


    public class UnderGrad
    {
    private double CGPA;

    public UnderGrad (Sring matricNo, String name, String course, double CGPA)
    {

    }

    public void Display()
    {

    }
    }


  2. #2
    Junior Member
    Join Date
    Nov 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help me my test just now! urgent!

    Write a complete program based on the class diagram above labTest1.pdf in labTest1.pdf. You are required to show inheritance concept inside your program. Use the following information to produce the code

    example:

    public class Student
    {
    protected String matricNo;
    protected String name;
    protected String course;

    public void Student (String matricNo, String name, String course)
    {

    }

    public void Display()
    {

    }

    }


    public class UnderGrad
    {
    private double CGPA;

    public UnderGrad (Sring matricNo, String name, String course, double CGPA)
    {

    }

    public void Display()
    {

    }
    } labTest1.pdf

  3. #3
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: help me my test just now! urgent!

    Maybe you could ask your classmate

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: help me my test just now! urgent!


  5. #5
    Junior Member
    Join Date
    Nov 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help me my test just now! urgent!

    yes.. is just same.. help me sir!

  6. #6
    Junior Member
    Join Date
    Nov 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help me my test just now! urgent!

    my classmate also do it..but me want to ask from u all if you know more deeply..please.. i give the example of code to do it

  7. #7
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: help me my test just now! urgent!

    Post your code and ask specific questions. Nobody will do it for you.

  8. #8
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: help me my test just now! urgent!

    It's not urgent to me. I'll get around to it when I feel like it.
    Improving the world one idiot at a time!

  9. #9
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: help me my test just now! urgent!

    The following program based on the class diagram (in .pdf)labTest1.pdf. And also I have show inheritance concept inside following program.

    **Code Removed**
    **see why here**

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: help me my test just now! urgent!

    If you have problems with your code, please paste it here and ask some specific questions about it.
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: help me my test just now! urgent!

    The following program based on the class diagram (in .pdf)labTest1.pdf. And also I have show inheritance concept inside following program.

    **Code Removed**
    **see why here**
    Last edited by Norm; November 20th, 2013 at 11:39 AM. Reason: Please don't do OPs work for him

Similar Threads

  1. How to test
    By keepStriving in forum Java Networking
    Replies: 2
    Last Post: June 10th, 2013, 10:15 AM
  2. Test, just a test
    By milesqgooletay7534 in forum Totally Off Topic
    Replies: 1
    Last Post: January 20th, 2013, 01:48 PM
  3. Need urgent help regarding java word wrap function.. URGENT
    By coldice in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 16th, 2011, 05:43 AM