C#.Net Interview Question and Answers

21. Does c# support multiple inheritance?
  No,its impossible which accepts multi level inheritance.
 
Your Name Your Email-ID
Your Answer
22. What is ENUM?
  Enum are used to define constants.
 
Your Name Your Email-ID
Your Answer
23. What is a data set?
  A DataSet is an in memory representation of data loaded from any data source.
 
Babita, said Jan 26,2014
Dataset is a container in which we can stored multiple table data with help of data source.
Digvijay Kumar Singh, said Jan 17,2014
Dataset is connection type object od ADO.net and worked at disconnected mode and taken the diffrent–diffrent information from diffrent –diffrent data provideer and making the relation between them.
Your Name Your Email-ID
Your Answer
24. What is the difference between private and public keyword?
 
  • Private : The private keyword is the default access level and most restrictive among all other access levels. It gives least permission to a type or type member. A private member is accessible only within the body of the class in which it is declared.
  • Public : The public keyword is most liberal among all access levels, with no restrictions to access what so ever. A public member is accessible not only from within, but also from outside, and gives free access to any member declared within the body or outside the body.
 
Your Name Your Email-ID
Your Answer
25. Define polymorphism?
  Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program.It allows us to have overloading of operators so that an operation can exhibit different behaviours in different instances.
 
Your Name Your Email-ID
Your Answer