whan I write a class like this:
public class MyClass{
public void print(){
system.out.println("Hi")
}
}
I can instantiate the class in the main even though It has no constructor written by me, is that because it inherits from Object anyway ?