Search:

Type: Posts; User: jezza10181

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    1,443

    What Layout Manager to use here

    Hi,

    I have been working on the following Java GUI class. All it does is display a JScrollPane, and within that pane displays arrays of numbers, each of which has an associated label. The main...
  2. Replies
    6
    Views
    4,111

    Re: Abstract classes, and 'instanceOf'

    Sure, yes, that is possible, and is something that I originally thought of doing. But there are soliid reasons why I want to do it this way. One is that of computational efficiency, treating reals as...
  3. Replies
    6
    Views
    4,111

    Re: Abstract classes, and 'instanceOf'

    Sure, yes.. but what I neglected to mention in my original post, was something like this:-

    Lets say, that I am initially adding two numbers of the Complex class, then because I will not know what...
  4. Replies
    6
    Views
    4,111

    Abstract classes, and 'instanceOf'

    Ok, I have 3 classes, An abstract one (called 'NumberType'), and two standard ones (called 'Real' & 'Complex'). The two standard classes are child classes of the abstract class.

    As you may have...
  5. Replies
    2
    Views
    1,329

    abstract class & 'covariant' return type?

    Hi Forum,

    I have written an abstract class called 'Field', which within has an abstract method called 'getValue()'. So, so far I have:-

    public abstract class Field
    {
    // instance...
Results 1 to 5 of 5