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. Basic help guys

Basic help guys

Scheduled Pinned Locked Moved C#
helptutorial
3 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.
  • N Offline
    N Offline
    nasty_nas
    wrote on last edited by
    #1

    First of all, I'm really sorry for my english, hope youll understand what I'm asking for... :-) I need to define a class contains fields as strings and integers, a constructor, properties and Set/Get function. In main(), I need to creat an object of this class and access it's info. I need to create a sub-class (I think it's called this way... which goes by "class x:y" syntex...), to add fields in it, Set/Get function, properties, and define an object in main(). I know it sounds lots of work, but actually it's nothing for you guys. I'm not asking you to write one especially for me, but if you have an example code - i'll be gratefull!!! Thank you in advance!

    C R 2 Replies Last reply
    0
    • N nasty_nas

      First of all, I'm really sorry for my english, hope youll understand what I'm asking for... :-) I need to define a class contains fields as strings and integers, a constructor, properties and Set/Get function. In main(), I need to creat an object of this class and access it's info. I need to create a sub-class (I think it's called this way... which goes by "class x:y" syntex...), to add fields in it, Set/Get function, properties, and define an object in main(). I know it sounds lots of work, but actually it's nothing for you guys. I'm not asking you to write one especially for me, but if you have an example code - i'll be gratefull!!! Thank you in advance!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This is really basic stuff, have you thought about buying a book ? public class A { public class B { private int _i; public int I { get { return _i; } set { _i = value; } } public B() { _i = 42; } } }

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • N nasty_nas

        First of all, I'm really sorry for my english, hope youll understand what I'm asking for... :-) I need to define a class contains fields as strings and integers, a constructor, properties and Set/Get function. In main(), I need to creat an object of this class and access it's info. I need to create a sub-class (I think it's called this way... which goes by "class x:y" syntex...), to add fields in it, Set/Get function, properties, and define an object in main(). I know it sounds lots of work, but actually it's nothing for you guys. I'm not asking you to write one especially for me, but if you have an example code - i'll be gratefull!!! Thank you in advance!

        R Offline
        R Offline
        Rudolf Jan
        wrote on last edited by
        #3

        I suggest you buy a book on C# and study it. You will learn nothing from our answers. This looks a lot like home work. You will get stuck again in the next excercise and then maybe nobody here will be nice to you. Being a programmer is a great job but it takes a lot of pain to learn.

        Rudolf Heijink

        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