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. variable type class

variable type class

Scheduled Pinned Locked Moved C#
4 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
    tek 2009
    wrote on last edited by
    #1

    if you allow I want to know what that means intruction;

    Persone pers1;

    knowing that Persone is a class thank you

    H L 2 Replies Last reply
    0
    • T tek 2009

      if you allow I want to know what that means intruction;

      Persone pers1;

      knowing that Persone is a class thank you

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      membre123 wrote:

      what that means intruction; Persone pers1;

      It simply instructs the compiler to reserve enough space to hold a reference to an instance of the class (Persone in this case) which can then be referred to by the name pers1. That's about it. It does nothing else.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • T tek 2009

        if you allow I want to know what that means intruction;

        Persone pers1;

        knowing that Persone is a class thank you

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It's not an instruction. What it means depends on the context. It could be a field declaration[^], or a local variable declaration[^] (and maybe something else that I've missed)

        T 1 Reply Last reply
        0
        • L Lost User

          It's not an instruction. What it means depends on the context. It could be a field declaration[^], or a local variable declaration[^] (and maybe something else that I've missed)

          T Offline
          T Offline
          tek 2009
          wrote on last edited by
          #4

          ok thank you all

          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