• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt  RSS feed

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a class can be a subclass of itself?
 
Henrik Engert
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. That is cyclic inheritance.

Why would you want to do something like that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!