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 |
Can you use all access modifiers for all types?
What is default c#?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
List some of the classes used by system.data namespace?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
Can we create multiple constructors?
What is the difference between interface and abstract class ?
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
Why is .net so popular?
What are the string functions in c#?
Difference between imperative and interrogative code?
Distinguish between continue and break statement?