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 4 of 4

Thread: I don't know how to do this code.. Im a beginner. Can someone walk me through this?

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I don't know how to do this code.. Im a beginner. Can someone walk me through this?

    So here's the OBJ..
    The objective of this assignment is to build a simple program using Inheritance. The application will include seven classes including the one containing the main method. The Product class will be the super class of classes Electronics and Book. The Electronics class will be the parent class of the MP3Player class and the TV class.

    TASK
    The Product class is complete. Your task is to complete the rest of the classes. The requirements for each of the methods in each class are specified in the method signatures.

    Method computeSalePrice is common to all classes. However, this method will be overridden in each class because not all objects will have the same Sale Price.



    The figure in next page shows a diagram of all the classes involved in this application.


    Class ProductApplication is complete. You should get the following output when you run your program.


    There are many files with this..
    Attached Files Attached Files


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I don't know how to do this code.. Im a beginner. Can someone walk me through this?

    Did you have question?
    What have you tried?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I don't know how to do this code.. Im a beginner. Can someone walk me through this?

    I don't know where to start?

    Read "Constructor: Creates a new object of class Book"
    Didn't know how to do it.
    Moved on.. Then I realized I don't know where to start and what to edit. I'm hopelessly confused

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I don't know how to do this code.. Im a beginner. Can someone walk me through this?

    There are lots of tutorial's and other sources out there for learning java. This forum is more for helping students get their code working.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. I don't get why this code isn't working
    By tai8 in forum What's Wrong With My Code?
    Replies: 23
    Last Post: February 20th, 2012, 12:38 PM
  2. Replies: 11
    Last Post: February 10th, 2012, 05:38 PM
  3. First Go: I don't think my code is arranged properly.
    By 05mooree in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 12th, 2012, 07:20 AM
  4. Newbie Question on a Code - I don't know if this is Java
    By fresca in forum Java Theory & Questions
    Replies: 4
    Last Post: April 7th, 2011, 08:39 PM