This gets compiled.
But i dont understand the logic. A class declaring objects of its own inside it, when the definition of that class isnt finished yet.
Can someone give me 2-3 lines of tutorial about what is happening
Sorry. Ive corrected the mistake.Now Back to the question.
But doesnt it sound recursive ?
According to this Class definition, when an instance object of this Class is created, another instance object of the same Class is needed to be created inside the second. For the second object , a third one is needed to be created inside and it needs to go on like this.
I know it is a problem with my understanding of this. Anybody correct me.