[SIZE=2]
public class Parabole {
// properties
private double a;
private double b;
private double c;
// constructor = a special method to build or instantiate the object
public Parabole(double a, double b, double c) {
this.a = a;
this.b = b;
this.c = c;
}
// the methods (notice that methods can be functions too)
public double getF(double x) {
return (a * x * x) + (b * x) + c;
}
public double getDiscriminant() {
return (b * b) - (4 * a * c);
}
}[/SIZE]
I guess nobody can't answer this as languages are evolving in the same way than hardwares and OS's.Witch one will be used more in the future?
If I had sufficient time, I would have a try with both of them. They both look interesting.And finally witch would be better to learn ruby or F#?
Depends on the application of the applicationWitch one will be used more in the future?
Neither. I'd start with Python or C/C++. The thing with both Ruby and F# is they run ontop of frameworks, meaning decreased performance.And finally witch would be better to learn ruby or F#?![]()
Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.
If you're not already familiar with forums, watch our Welcome Guide to get started.
Join over 807,865 other people just like you!