1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

some onterview questions.Try it.

Discussion in 'C#' started by singh_r85, May 31, 2010.

  1. singh_r85

    singh_r85 New Member

    Joined:
    May 25, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    1.Does C# support multiple-inheritance?
    2.Are private class-level variables inherited?
    3. What does the term immutable mean?
    4. What’s the difference between System.String and System.Text.StringBuilder classes?
     
  2. spoddar66

    spoddar66 New Member

    Joined:
    May 25, 2010
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    0
    1. no.
    2. Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.
    Can't answer 3,4.
     
  3. mmondal71

    mmondal71 New Member

    Joined:
    May 25, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    3. The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
    4. System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.
     

Share This Page