Results 1 to 5 of 5

Thread: What are Smart fields in programming language

  1. #1
    Join Date
    Dec 2010
    Posts
    53

    What are Smart fields in programming language

    Hello friends , I am so glad to post my question my once again , last time I had posted my question regarding a technical query and now I am posting to ask about some programming concepts, I have been doing a bit C# programming in Microsoft's Visual Studio. I want to ask about the smart fields that are been used in the object oriented language but mostly in C# language , if you have any idea please let me know , I am waiting for your response.

  2. #2
    Join Date
    May 2009
    Posts
    637

    Re: What are Smart fields in programming language

    It is always a better objective to plan classes that not only conceal the implementation of the class’s function, but that also prohibit any straight member right to use to the class’s fields. By giving accessor methods whose work it is to get back and assign the values of these fields, you can be certain that a field is treated properly, so you can use this setter and getter properties and use it effectively. .

  3. #3
    Join Date
    May 2009
    Posts
    529

    Re: What are Smart fields in programming language

    Using accessor function function well and is a method utilized by developers of several object-oriented languages, that also involves C++ and Java. However, C# gives an even richer means—properties—that has the similar abilities as accessor function and is much more stylish on the client end. Through properties, a developer can write a client that can control a class’s fields considering those fields as public fields .

  4. #4
    Join Date
    May 2009
    Posts
    527

    Re: What are Smart fields in programming language

    Using accessor function function well and is a method utilized by developers of several object-oriented languages, that also involves C++ and Java. However, C# gives an even richer means—properties—that has the similar abilities as accessor function and is much more stylish on the client end. Through properties, a developer can write a client that can control a class’s fields considering those fields as public fields .

  5. #5
    Join Date
    Apr 2009
    Posts
    488

    Re: What are Smart fields in programming language

    A C# property comprise of a field declaration and accessor function mainly utilized to change the field’s value. These accessor functions are called getter and setter functions. The former is used to retrieve the value and the latter is used to modify the content. Here is the example
    Code:
    class Location 
        {
            protected string area;
            protected string postalzip;
    
            public string ZipCode
            {
                get
                {
                    return postalzip;
                }
                set
                {
                                    postalzip = value;
                    // the area is updated.
                }
            }
        }

Similar Threads

  1. Most popular programming language
    By SoftWore in forum Polls & Voting
    Replies: 12
    Last Post: 14-08-2010, 09:42 AM
  2. What are HTA in Programming Language?
    By Silent~Kid in forum Software Development
    Replies: 4
    Last Post: 27-02-2010, 05:31 AM
  3. Socket programming: Is any new Programming Language?
    By Kushan in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 11:13 AM
  4. JABACO programming language
    By Duck in forum Software Development
    Replies: 4
    Last Post: 22-04-2009, 09:21 PM
  5. Best Programming Language To Learn First?
    By Baker in forum Software Development
    Replies: 4
    Last Post: 02-04-2009, 12:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,056,087.54598 seconds with 17 queries