Search:

Type: Posts; User: jezza10181

Search: Search took 0.18 seconds.

  1. Replies
    6
    Views
    4,149

    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
    4,149

    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
    4,149

    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...
Results 1 to 3 of 3