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. Visual Basic
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved Visual Basic
13 Posts 5 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.
  • A Offline
    A Offline
    AliAmjad
    wrote on last edited by
    #1

    [Message Deleted]

    P J A G 4 Replies Last reply
    0
    • A AliAmjad

      [Message Deleted]

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Well, what do you mean? Are you incapable of reading the comments in the code?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

      A 1 Reply Last reply
      0
      • A AliAmjad

        [Message Deleted]

        J Offline
        J Offline
        Jon_Boy
        wrote on last edited by
        #3

        Not sure what you are asking here. Are you asking for guidance on interfaces?

        Any suggestions, ideas, or 'constructive criticism' are always welcome.

        A 1 Reply Last reply
        0
        • P Paul Conrad

          Well, what do you mean? Are you incapable of reading the comments in the code?

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

          A Offline
          A Offline
          AliAmjad
          wrote on last edited by
          #4

          I am not incapable of reading the comments because they have been written by myself. I think you didn't understand the question all i was asking the technical working what is happening in the memory when we execute the given code.

          AliAmjad(MCP) First make it Run THEN make it Run Fast!

          P 1 Reply Last reply
          0
          • J Jon_Boy

            Not sure what you are asking here. Are you asking for guidance on interfaces?

            Any suggestions, ideas, or 'constructive criticism' are always welcome.

            A Offline
            A Offline
            AliAmjad
            wrote on last edited by
            #5

            Ok here is what i am trying to accomplish i am working on an Application Framework and using both the composition approach and inheritance approach all i was asking the technical working of the code given what is actually happening in the memory as there is some confusion i am facing that's why asking.

            AliAmjad(MCP) First make it Run THEN make it Run Fast!

            1 Reply Last reply
            0
            • A AliAmjad

              [Message Deleted]

              A Offline
              A Offline
              AliAmjad
              wrote on last edited by
              #6

              WHAT THE HELL ! when someone don't understand the question he/she mark it as bad question. You all guys are expert out there i am sure but i don't consider myself one that's why i was asking for help from all the experts & brilliant brains out there in order to eliminate the confusion i am facing. If by asking something that hurts your ego or that's way too below your expectation then please don't even bother to answer just IGNORE.

              AliAmjad(MCP) First make it Run THEN make it Run Fast!

              D 1 Reply Last reply
              0
              • A AliAmjad

                WHAT THE HELL ! when someone don't understand the question he/she mark it as bad question. You all guys are expert out there i am sure but i don't consider myself one that's why i was asking for help from all the experts & brilliant brains out there in order to eliminate the confusion i am facing. If by asking something that hurts your ego or that's way too below your expectation then please don't even bother to answer just IGNORE.

                AliAmjad(MCP) First make it Run THEN make it Run Fast!

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Your question, as worded, implies that you don't know anything about how to declare a variable or create an instance of a class. This is VB.NET 101 type stuff, which is probably why you got knocked down. The answer to the question at hand is quite simple. Memory is allocated to hold an instance of the object, both the code and data seperately. The code is only kept in memory once for every instance of the class, while each instance's data is kept seperately in their own blocks of memory. If you wanted to know something beyond this, perhaps an explanation of what you're thinking is going on, or what the situation is you're facing, or why you're looking for more detail would be in order.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                A P 2 Replies Last reply
                0
                • D Dave Kreskowiak

                  Your question, as worded, implies that you don't know anything about how to declare a variable or create an instance of a class. This is VB.NET 101 type stuff, which is probably why you got knocked down. The answer to the question at hand is quite simple. Memory is allocated to hold an instance of the object, both the code and data seperately. The code is only kept in memory once for every instance of the class, while each instance's data is kept seperately in their own blocks of memory. If you wanted to know something beyond this, perhaps an explanation of what you're thinking is going on, or what the situation is you're facing, or why you're looking for more detail would be in order.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008

                  A Offline
                  A Offline
                  AliAmjad
                  wrote on last edited by
                  #8

                  I know all this but may be i am not able to ask the question properly or you are not getting my point anyway thanks a ton for your help Dave.

                  AliAmjad(MCP) First make it Run THEN make it Run Fast!

                  1 Reply Last reply
                  0
                  • A AliAmjad

                    I am not incapable of reading the comments because they have been written by myself. I think you didn't understand the question all i was asking the technical working what is happening in the memory when we execute the given code.

                    AliAmjad(MCP) First make it Run THEN make it Run Fast!

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    AliAmjad wrote:

                    you didn't understand the question

                    Well, it was so off worded, do you really expect anyone to understand?

                    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                    1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Your question, as worded, implies that you don't know anything about how to declare a variable or create an instance of a class. This is VB.NET 101 type stuff, which is probably why you got knocked down. The answer to the question at hand is quite simple. Memory is allocated to hold an instance of the object, both the code and data seperately. The code is only kept in memory once for every instance of the class, while each instance's data is kept seperately in their own blocks of memory. If you wanted to know something beyond this, perhaps an explanation of what you're thinking is going on, or what the situation is you're facing, or why you're looking for more detail would be in order.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007, 2008

                      P Offline
                      P Offline
                      Paul Conrad
                      wrote on last edited by
                      #10

                      Dave Kreskowiak wrote:

                      perhaps an explanation of what you're thinking is going on, or what the situation is you're facing, or why you're looking for more detail would be in order.

                      Yes, that would be very nice.

                      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                      A 1 Reply Last reply
                      0
                      • P Paul Conrad

                        Dave Kreskowiak wrote:

                        perhaps an explanation of what you're thinking is going on, or what the situation is you're facing, or why you're looking for more detail would be in order.

                        Yes, that would be very nice.

                        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                        A Offline
                        A Offline
                        AliAmjad
                        wrote on last edited by
                        #11

                        I am completely off the road i think if i can rephrase the question should i ask - How memory is allocated to an object in Heap? If you came across any technical article on this topic please let me know Thanks.

                        AliAmjad(MCP) First make it Run THEN make it Run Fast!

                        D 1 Reply Last reply
                        0
                        • A AliAmjad

                          [Message Deleted]

                          G Offline
                          G Offline
                          Guffa
                          wrote on last edited by
                          #12

                          AliAmjad wrote:

                          Dim nyBus As ICalculateTax = New NewYorkBusiness

                          An instance of the NewYorkBusiness class (I suppose that it's a class) is created on the heap. The reference to the instance is stored in the nyBus variable. The nyBus variable can hold a reference to any class that implements the ICalculateTax interface.

                          AliAmjad wrote:

                          Dim nyBus As BasicBusiness = New LahoreBusiness

                          An instance of the LahoreBusiness class is created on the heap. The reference to the instance is stored in the nyBus variable. The nyBus variable can hold a reference to the BasicBusiness class or any class that inherits it.

                          Despite everything, the person most likely to be fooling you next is yourself.

                          1 Reply Last reply
                          0
                          • A AliAmjad

                            I am completely off the road i think if i can rephrase the question should i ask - How memory is allocated to an object in Heap? If you came across any technical article on this topic please let me know Thanks.

                            AliAmjad(MCP) First make it Run THEN make it Run Fast!

                            D Offline
                            D Offline
                            Dave Kreskowiak
                            wrote on last edited by
                            #13

                            AliAmjad wrote:

                            How memory is allocated to an object in Heap?

                            Yes, that would have helped alot.

                            A guide to posting questions on CodeProject[^]
                            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                 2006, 2007, 2008

                            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