Sounds like you're getting some concepts mixed up here.
The method signature
Code
Class1 getSequence(Class2 organism)
means that your method will return an object instance of type Class1.
The call
Code
Class3::getSequence(Class2 organism)
is a method inside the class, Class3, which presumably returns *something* (you haven't actually told us what it is here.. but I'm going to assume that it needs to return an object of type Class1, as you noted above).
Last but not least, non-static data/methods are meant to be called from a specific instance of a class. In this case, you're trying to access the array ds[] statically, when it's not a static data variable.
This post was edited by irimi on May 13 2013 11:13pm