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 Collections - Collection initialization syntax - Quiz 12easy Collections - List methods (Add, Remove, Find, Sort) - Quiz 1easy Exception Handling - When clause in catch - Quiz 8hard Exception Handling - Throw and rethrow patterns - Quiz 14medium Inheritance - Method overriding with virtual and override - Quiz 14medium Inheritance - Method overriding with virtual and override - Quiz 15hard LINQ Fundamentals - Why LINQ is needed - Quiz 15hard LINQ Fundamentals - Select clause projection - Quiz 1easy LINQ Fundamentals - Select clause projection - Quiz 2easy Properties and Encapsulation - Why encapsulation matters - Quiz 15hard