C# Questions
interface implementation constructors GUI (graphical user interface) |
Constructors; destructors Public; private Retrievals; putters None of the above |
If a method is public, it is considered part of the class implementation. If you declare an attribute as private, you do not have to worry about tracking down every piece of code that might have changed the attribute when debugging. While designing a class you add as many interfaces as possible, trying to cover all possible future user needs. All of the above None of the above |
“Take a pound of ground meat, add a chopped onion, salt, pepper, parsley and broil for 15 minutes until the burger becomes golden brown.” “What do you do after work?” “Prepare a steak, medium-rare.” All of the above Only A and C |
methods constructor class destructor |
public void Roll() ; public int Move(int x) public int Charge(int x) ; public int Charge(int y) public int Subtract() ; public void Subtract() All of the above Only B |
i. ii only i and iii None are true All are true |
Yes, as long as the method performs the same or similar task. Yes, this is possible. No, because the compiler cannot distinguish the appropriate method to call. None of the above |
Check for potential problems and abort the application when a problem is encountered. Check for potential problems and throw an exception. Check for potential problems, catch the mistake and try to fix it. All of the above |
numberOfBuildings numberOfApartments numberOfFloors None of the above |