Results 1 to 4 of 4

Thread: What is actually the meaning of properties for C#?

  1. #1
    Join Date
    Nov 2009
    Posts
    63

    What is actually the meaning of properties for C#?

    I have decided to learn Csharp. I want to learn .Net also. I am also aware that .Net framework supports Csharp for most of its applications. But right now I am finding Csharp little difficult to grasp. I am not understanding what actually do you mean by Properties in Csharp? I am not able to grasp about properties from my notes as there is not much given about them.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: What is actually the meaning of properties for C#?

    Properties perform the task of encapsulating the data in C#. You can actually hide a class field of a class by transfering information to it by using property. Properties can be easily accessed in Csharp as if they were a field. In Csharp properties perform the same function as that of setter-method and getter-method in other software-coding languages. They can get a value for a class member and can also set values for a class member.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: What is actually the meaning of properties for C#?

    The data of private members is always hidden from outside world. But if you want to retrieve or write data to this members by still maintaining Encapsulation you can do that by using Csharp Properties. You need to select public, private, protected, protected internal or internal accessibility for these Csharp Properties. This indicates the section of program the properties can have access to.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is actually the meaning of properties for C#?

    I was also confused about the concept of properties with Csharp. To say in simple words, Propeties for Csharp are necessary to read and write values to the private data members. The internal implementation of properties can be varied with time. These properties although can be reffered as public data members but in reality they are special methods known as accessors.

Similar Threads

  1. What is the meaning of DMA and PMA in tellabs modem
    By Jannat in forum Networking & Security
    Replies: 4
    Last Post: 30-12-2013, 10:04 PM
  2. Meaning of growl in Apple Mac OSX.
    By Acardi !! in forum Windows Software
    Replies: 3
    Last Post: 06-09-2011, 11:51 PM
  3. Replies: 1
    Last Post: 16-12-2009, 01:11 PM
  4. What is meaning for Indexers in C# ?
    By Flacos in forum Software Development
    Replies: 3
    Last Post: 10-11-2009, 07:01 PM
  5. What is the meaning of Hypertext PreProcessor in PHP
    By Gefry in forum Software Development
    Replies: 3
    Last Post: 10-09-2009, 10:28 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,108,257.67622 seconds with 17 queries