Search:

Type: Posts; User: jezza10181

Search: Search took 0.20 seconds.

  1. Replies
    6
    Views
    1,711

    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...
  2. Replies
    6
    Views
    1,711

    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...
  3. Replies
    6
    Views
    1,711

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