Simi Tkd
why c# structures are still useful ?
By Simi Tkd in .NET on Jul 10 2014
  • Simi Tkd
    Jul, 2014 10

    c# structures send object by value like basic type which reduce overhead. structure can not inheritance,static, abstract virtual methods or members . structure can have constructor but no argument constructor can't be overloaded. structure can use interfaces, operator overloading ,indexer and property. structure should be used for small object that did not inheritance

    • 2
  • Munesh Sharma
    Jul, 2014 23

    A struct is a value type, whereas a class is a reference type. A struct does not support inheritance (other than implicitly deriving from object). A struct can have all the members a class can, except the following: A parameterless constructor A finalizer Virtual members

    • 1
  • dhansukh velani
    Jul, 2014 23

    because its fully object oriented

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS