C#.NET INTERVIEW QUESTIONS & ANSWERS
DOT Net
TAGS
36. | Define inheritance? |
---|---|
Inheritance is the process by which objects of one class acquire properties of objects of another class. |
Posted by Aswini Aluri. (Nov 20, 2013 ) | |
Inheritance is the process creating new class from already exsisting class. . |
|
Posted by Anjaneyulu. (Oct 22, 2013) | |
Inheritance is the process of using the members of one class to the another class by establing parent-child relationship between them. . |
37. | What is the difference between constants and read-only variables that are used in programs? |
---|---|
|
38. | Does C# support multiple-inheritance? |
---|---|
No, use interfaces instead. |
39. | What are the advantages of get and set properties in C#? |
---|---|
|
Posted by Aswini Aluri. (Nov 20, 2013 ) | |
Get accessor is used to read the data from data field. Set accessor is used to write the data in data field. |
40. | What is the main difference between a subprocedure and a function? |
---|---|
Subprocedures do not return a value, while functions do. |