Alam Riku·Follow1 min read·Dec 8, 2019--ListenSharegetNext() is a method of Node class and $currentNode is assign to Linklist property head. so how can it be possible that $currentNode has getNext() method…I am a bit confuse….$currentNode->getNext()