If a class is a ref type, how we can pass to a function.
Answer Posted / 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 |
Post New Answer View All Answers
Explain the accessibility modifier protected internal?
What is check/uncheck?
What is int32 in c#?
Explain dataadapter.update method in .net?
Can interface have virtual methods in c#?
What is yield in c#?
HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only
What are the value types in c#?
Are multiple data types stored in System.Array?
What is difference between array and collection in c#?
What is the difference between namespace and class?
Is array a list?
What is generic delegate in c#?
What are assemblies?
What is function c#?