I was just wondering how to use multiple source files in Cobra? It's used in large programs, but for simplicity sake let's say I have two files:
class File1
def main
f2 = File2()
f2.sayHello
Console.WriteLine(f2.add(5, 5))
class File2
def sayHello
print "Hello from file2!"
def add(x as int, y as int)
return x + y
How would I use 'File2' in 'File1'?
Thanks in advance,
- JimmyD