Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Java abstract

    by Norm
    Replies
    6
    Views
    1,150

    Re: Java abstract

    Are you sure? This line must print something:

    System.out.println(math.toString());

    In what method is setType("Math") called? Then where is that method called?
  2. Thread: Java abstract

    by Norm
    Replies
    6
    Views
    1,150

    Re: Java abstract

    What prints out when the code is executed? Why do you expect anything different to be printed?
  3. Thread: Java abstract

    by Norm
    Replies
    6
    Views
    1,150

    Re: Java abstract

    Where is the main class, what is the name of the main class and where are the methods that are supposed to cause "Math" to be printed.

    There is no main() method in the posted code. A main()...
Results 1 to 3 of 3