If a class is a ref type, how we can pass to a function.
Answer / sujai cn
We can pass the object to a function by pass by reference
type.
create an object and pass that object to the function.
when we pass the object to function a copy constructor is
used to create a bit wise copy of the object sent to the
function.If there is no copy constructor implemented the
default copy constructor is called.
Is This Answer Correct ? | 3 Yes | 1 No |
What is the meaning of 0 in c#?
Explain the process of inheriting a class into another class?
How do destructors and garbage collection work in c#?
What is an xsd file?
What is a generic in c#?
Explain ACID rule of thumb for transactions.
What does it meant to say “the canonical” form of XML ?
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
Can a constructor be private in c#?
How do I create a multilanguage, single-file assembly?
What is difference between dynamic and var in c#?
How can I access the registry from c# code?