Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anonymous methods in c#?

1217


Explain the role of Garbage collector and its generations?

1012


What is the purpose of dependency injection?

974


Expalin the way you implement inheritance by using VB.NET/C#?

1001


Are string objects mutable or immutable?

995


Give an example of a directcast.

989


What are the differences between static, public and void in c#?

1132


what happens if you inherit multiple interfaces and they have conflicting method names?

929


What is mvc in c#?

950


What is new method in c#?

972


Why reflection is used in c#?

984


Is char * null terminated?

996


What is or operator in c#?

1001


Why we use get and set method in c#?

1001


Explain acid rule of thumb for transactions in c#.

1038