C# Interview Question and Answers

31. Can you store multiple data types in System.Array?
  No
 
Your Name Your Email-ID
Your Answer
32. Are private class-level variables inherited?
  Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.
 
Your Name Your Email-ID
Your Answer
33. Does C# support multiple-inheritance?
  No, use interfaces instead.
 
Your Name Your Email-ID
Your Answer
34. Can you override private virtual methods?
  No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access.
 
Your Name Your Email-ID
Your Answer
35. How do you inherit from a class in C#?
  Place a colon and then the name of the base class. Notice that it's double colon in C++.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 7 of 10