Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
Can a method return multiple values in c#?
How is the syntax written to inherit from a class in C#?Give an example ?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
What is static variable in c#?
When should I throw an exception?
If you want to write your own dot net language, what steps you will u take care?
Can a class have static constructor?
What is inheritance in csharp?
Illustrate serialization?
When was .net linq added?
Define strong name in c#?
What is difference between interface and abstraction?
Why dictionary is faster than list?
Explain the difference between pass by value and pass by reference.