Question: Write out the output (what
would be written to the console), when this following block of code is run:
WhatsMyCity and WhatsMyState are not returning anything so the program will not compile.
public class ZipData
{
string ZipCode { get; set; }
string CityName { get; set; }
string StateName { get; set; }
}
public static class ZipHelper
{
public static string WhatsMyCity(string Zip)
{
//Returns a string representing the City for the Zip provided
//Returns null if string is not a zip or not found in database
}
public static string WhatsMyState(string Zip)
{
//Returns a string representing the State for the Zip provided
//Returns null if string is not a zip or not found in database
}
}
Answer:
WhatsMyCity and WhatsMyState are not returning anything so the program will not compile.
No comments:
Post a Comment