Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it the C# compiler or the CLR that prohibits multiple inheritance

Exactly as the title says.

Is it a restriction placed by the C# compiler or does the CLR fundamentally prohibit it?

like image 791
RichK Avatar asked Aug 07 '13 15:08

RichK


People also ask

Is there a C+?

C+ is a slightly above average grade on an assignment (usually within an educational context)... There is much debate on this topic... Low and High level languages: 1.

Why is it named C?

C is a general purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. It was named 'C' because many of its features were derived from an earlier language called 'B'.

Why is C not A or B?

Because C comes after B The reason why the language was named “C” by its creator was that it came after B language. Back then, Bell Labs already had a programming language called “B” at their disposal.

Where is C in the alphabet?

C, or c, is the third letter in the English and ISO basic Latin alphabets.


1 Answers

Both.

The C# language, which is not directly tied to the CLR (i.e. Mono AOT) does not allow multiple inheritance.

The CLR type system, which supports languages other than C#, also does not support multiple inheritance.

like image 196
SLaks Avatar answered Sep 19 '22 23:09

SLaks