C# Interview Questions with Answers Pdf - 3
Question: 11
What is the difference between an interface and abstract class?
In an interface class, all methods are abstract- there is no implementation.
In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed.
An abstract class may have accessibility modifiers.
Question: 12
What is the difference between a struct and a class?
Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval.
Another difference is that structs cannot inherit.
Question: 13
What does the keyword “virtual” declare for a method or property?
The method or property can be overridden.
Question: 14
What is the implicit name of the parameter that gets passed into the set method/property of a class?
Value, the data type of the value parameter is defined by whatever data type the property is declared as.
Question: 15
What are the different ways a method can be overloaded?
Different parameter data types, different number of parameters, different order of parameters.
- C# Interview Questions and Answers for Freshers
- C# Interview Questions for Experienced Professionals
- C# Interview Questions and Answers for Experienced
- C# Interview Questions with Answers Pdf
- C Sharp Interview Questions and Answers
- C Sharp Interview Questions and Answers for Freshers Pdf
- Top 200+ Advanced C# Interview Questions 2019-2020
- C# Programming Online Test Questions and Answers
- C# Algorithm Interview Questions and Answers
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
Dairy Technology MCQ Questions and Answers More
Agricultural Engineering MCQ Questions & Answers Pdf More
MS Excel MCQ Questions and Answers Pdf More
Top 10000+ Computer Awareness Questions for FCI Exam More
1000+ Fana Aptitude Test and Interview Pdf More
1000+ English Fill in the Blanks Questions & Answers Pdf More
Top 100+ SQL Query Interview Questions and Answers More