Search:

Type: Posts; User: Sylis

Search: Search took 0.08 seconds.

  1. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    You sir are a gentleman and a scholar.
    I like that you gave me the answers I was looking for without just giving it to me. Made me think, and using my head, I figured it out, and instantly...
  2. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    Well, I use the methods to set the customer number, customer name, order quantity, and unit cost from Order, and then computePrice from a shipped order class in order to calculate the four dollars...
  3. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    Shouldn't it be the ShippedOrder method? The first set of dialog boxes set up the information, and then the computeOrder() in Order computes only quantity * price, and the computeOrder uses quantity...
  4. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    Yes I have.

    import javax.swing.*;
    public class Order
    {
    private String customer, numb, quant, unitPrice;
    private int custNumber;
    private double orderQuant, unitCost;
    public double total;
  5. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    Thank you, I figured it out by using:

    import javax.swing.*;

    public class UseOrder
    {
    public static void main(String[] args)
    {
    Order anOrder = new Order();...
  6. Replies
    15
    Views
    1,207

    Re: Inheritence and problems with static methods.

    You mean to instead of creating three different classes I should just have one class with an Order and ShippedOrder method in the one class? The assignment is to create three classes I can't really...
  7. Replies
    15
    Views
    1,207

    Inheritence and problems with static methods.

    I'm having some trouble getting this program to work, my assignment deals with inheritance, and I'm basically trying to call my methods in main in order to run them.... so here's what I've gotten so...
Results 1 to 7 of 7