C Sharp (C#) - InterfacesWhy can't a C# class inherit from multiple abstract classes but can implement multiple interfaces?ABecause abstract classes are sealed by default.BBecause C# supports single inheritance for classes but multiple interface implementation to avoid ambiguity.CBecause interfaces contain no methods to inherit.DBecause abstract classes cannot have constructors.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand C# inheritance rulesC# allows only one base class to avoid complexity and ambiguity.Step 2: Interfaces allow multiple implementationInterfaces define contracts without implementation, so multiple can be implemented safely.Final Answer:Because C# supports single inheritance for classes but multiple interface implementation to avoid ambiguity. -> Option BQuick Check:Single class inheritance, multiple interfaces allowed [OK]Quick Trick: Single class inheritance; multiple interfaces allowed [OK]Common Mistakes:MISTAKESThinking abstract classes are sealedBelieving interfaces have no methodsConfusing constructors with inheritance rules
Master "Interfaces" in C Sharp (C#)9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More C Sharp (C#) Quizzes Classes and Objects - Static members vs instance members - Quiz 7medium Collections - HashSet for unique elements - Quiz 13medium Collections - Queue and Stack behavior - Quiz 4medium Exception Handling - Custom exception classes - Quiz 6medium Exception Handling - Throw and rethrow patterns - Quiz 11easy File IO - StreamReader and StreamWriter - Quiz 3easy LINQ Fundamentals - LINQ with custom objects - Quiz 3easy LINQ Fundamentals - Select clause projection - Quiz 13medium Strings and StringBuilder - StringBuilder and why it exists - Quiz 13medium Strings and StringBuilder - Common string methods - Quiz 10hard