Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Recursive class definiton ?

Recursive class definiton ?

Scheduled Pinned Locked Moved C#
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The Nemesis
    wrote on last edited by
    #1

    I have a class A and within this class A, I want to have an object of type A. Is this possible ? Do I need to do anything special ?

    N M 2 Replies Last reply
    0
    • T The Nemesis

      I have a class A and within this class A, I want to have an object of type A. Is this possible ? Do I need to do anything special ?

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      i think u can do that

      Cheers Navaneeth!!

      T 1 Reply Last reply
      0
      • N N a v a n e e t h

        i think u can do that

        Cheers Navaneeth!!

        T Offline
        T Offline
        The Nemesis
        wrote on last edited by
        #3

        Thanks a lot..

        1 Reply Last reply
        0
        • T The Nemesis

          I have a class A and within this class A, I want to have an object of type A. Is this possible ? Do I need to do anything special ?

          M Offline
          M Offline
          Martin 0
          wrote on last edited by
          #4

          Hello, It's working as long as you not calling " ??? = new A();". Then you would have a invinit loop! All the best, Martin

          T 1 Reply Last reply
          0
          • M Martin 0

            Hello, It's working as long as you not calling " ??? = new A();". Then you would have a invinit loop! All the best, Martin

            T Offline
            T Offline
            The Nemesis
            wrote on last edited by
            #5

            I understand..I will not need to do that !

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups