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 difference between array and collection?

984


What is view model in c#?

805


If casting fails what type of exception is thrown?

825


What is the usage of Enumeration in C# Programming and is it good to use or not ?

941


Explain the difference between Metadata and Manifest

901


What are the types of operator?

819


When was c# created?

947


What is console based application?

919


Define property in c#.net?

921


How do you access a constant field declared in a class?

861


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

1093


Why delegates are required?

916


Why do we need static class in c#?

961


What are jagged arrays used for?

897


What is the difference between list and arraylist in c#?

823