Alright, so I am new to Java and have a quick question for anyone who would be nice enough to answer it.
What object is this doSomething method called on? Is it the same as calling this.doSomething()?
public class Something{
public void doSomething(){
System.out.println("Something is done");
}
public Something(){
//what object is this being called on?
doSomething();
}
public static void main(String[] args){
Something foo = new Something();
}
}
Any help is appreciated!