Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
rui7257617yHey 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.. -
@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
-
dunkel177y@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! -
rui7257617y@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 :)
Related Rants
someone explain this to me?
undefined
php