C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
ClassesAndOOP_Lesson8 Quiz
Answer all questions to test your understanding
1
What is an abstract class in C#?
A class that cannot be instantiated and can contain abstract methods
A class that can only be inherited
A class that contains only static methods
A class that cannot be inherited
2
What is an interface in C#?
A contract that defines methods without implementation
A class that contains implementation
A type of abstract class
A method that can be overridden
3
What is the main difference between an abstract class and an interface?
Abstract classes can have implementation, interfaces cannot (before C# 8)
Abstract classes cannot be inherited, interfaces can
Interfaces can have fields, abstract classes cannot
There is no difference
Submit Quiz