Write an expression which satisfies the following statements:
(i) Creates an object of type q
(ii) If m is null, returns n, otherwise returns m
(iii) If x and y are string types, it concatenates x and y
Answer / sam
1)q objQ = new q();
2)string result = m??n;
3) if((typeof(string) == x.GetType()) && (typeof(string) == y.GetType() )
{
String.Concat(x,y);
}
Is This Answer Correct ? | 1 Yes | 0 No |
Explain how can you clean up objects holding resources from within the code?
What is use of super class
Is c# substring zero based?
What is a linked list c#?
What is a base class in C#?
0 Answers TryTechnicals Pvt Ltd,
Explain the accessibility modifier protected internal?
list the steps in code compilation in c#?
how to return morethan one value using out parameter in c#.net ; For Example : public int show(out int []a) { int []a={1,2,3,4,5}; return a[]; } we have to print all the values without using the Console.WriteLine statement;
What's new in c#?
What are the Types of caching
What is the difference between C# 3.5 and C# 4.0?
What is the use of console?