Vijayashankar Palanichamy
Shape circle = new Shape(); Share circle1 = circle; circle = null?what will be the value of circle1?
By Vijayashankar Palanichamy in C# on Jul 28 2018
  • Hosam Khanjar
    Nov, 2018 30

    Original value of circle

    • 1
  • Smith Sonu
    Sep, 2018 30

    null.

    • 1
  • Shashidhar Reddy
    Aug, 2019 4

    It returns some type coversion error sayign can’t convert Shape to Share when you write “Share circle1 = circle;”

    • 0
  • Ramkumar Kandappan
    Apr, 2019 11

    circle1 is the instantiated value of shape and wont be null

    • 0
  • Chandrakant Sabnavis
    Feb, 2019 9

    null

    • 0
  • Amit Prakash
    Jan, 2019 2

    circle

    • 0
  • Charu
    Jan, 2019 2

    null

    • 0
  • Hosam Khanjar
    Nov, 2018 30

    5

    • 0
  • Hosam Khanjar
    Nov, 2018 30

    Original value of circle

    • 0
  • Hosam Khanjar
    Nov, 2018 30

    Null

    • 0
  • Siddhesh Chalke
    Oct, 2018 29

    circle1 will reference to Shape object initially referenced by circle

    • 0
  • Vijayashankar Palanichamy
    Oct, 2018 17

    Sorry for the confusion. It is Shape = circle1 = circle; and not Share; The answer will be circle1 will have value, since both are referring the same address from different stack location. The location of circle is assigned to null and not the circle1.

    • 0
  • Sachin Suryawanshi
    Oct, 2018 17

    circle will contain Shape object

    • 0
  • Sachin Suryawanshi
    Oct, 2018 17

    Share circle1 = circle; Shape and Share is different

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS