15
dunkel
6y

someone explain this to me?

Comments
  • 1
    I think your function return the label that you create!
  • 2
    Hey this is basically the instance of an object let say you have a

    class student{
    String name;
    String age;
    Public student(sname,sage){
    This.name=sname;
    This.age= sage;
    You are able to assign a value in the instance of the object you called in the main function
    }
    }

    Class program{
    int main(){
    student s = new student(“joe”,5);
    This is an instance
    }
    }

    In short this lets you access the instance of the object you created whether it is a function or variable..
  • 7
    @rui725 but the screen shot shows a function calling itself within the class. That's why OP is confused (and so am i). No values are set
  • 1
    @enen 404 arguments not found
  • 1
    @Bluedemonjr It makes a recursive cycle and thunders because you can not call yourself, but it is truncated after the 100 calls.

    E_ERROR Maximum function nesting level of '100' reached, aborting!
  • 2
    @Bl00D4NGEL I guess he needs to know why this is being used therefore he would know when to use such keyword.. if it was coded other than him then I’d say there was something wrong or they are using overloading methods :)
  • 0
    What do you not understand?
    It's self-explainatory... duh!
Add Comment