A
Abder-Rahman Ali
Like constructors in Java, I understood that in Ruby, we use
"initialize" for this issue.
If I have the following in Java:
public class ReadFile
{
public static short[][] setFile(fileName)
{
ReadFile rf = new ReadFile();
}
}
Regarding:
public static short[][] setFile(fileName)
In a previous thread, I understood that I can represent it in ruby as:
def set_file(filename)
end
But, now, as for:
ReadFile rf = new ReadFile();
Does the preceding Java code look like the follows in Ruby:
class ReadFile
def set_file(filename)
def initialize
end
end
end
Thanks.
"initialize" for this issue.
If I have the following in Java:
public class ReadFile
{
public static short[][] setFile(fileName)
{
ReadFile rf = new ReadFile();
}
}
Regarding:
public static short[][] setFile(fileName)
In a previous thread, I understood that I can represent it in ruby as:
def set_file(filename)
end
But, now, as for:
ReadFile rf = new ReadFile();
Does the preceding Java code look like the follows in Ruby:
class ReadFile
def set_file(filename)
def initialize
end
end
end
Thanks.