What is self referential class explain with example?
Answers
Answered by
0
It is a special type of class. It is basically created for linked list and tree based implementation in C++. If a class contains the data member as pointer to object of similar class, then it is called a self-referential class.
Similar questions