Does C language support inheritance?
Does C language support inheritence. If so 开发者_Python百科is is it using structures as classes are not defined in C.
Yes, it does. See http://gcc.gnu.org/ml/gcc/2010-05/msg00725.html . See Axel-Tobias Schreiner's book Object-Oriented Programming with ANSI C. There's an English translation of it available.
Also, see Object-orientation in C and How can Inheritance be modelled using C? .
No it doesnt. C is not an Object Oriented language. Inheritance is a property of OO languages.
You should try C++. It's OO and supports much more than inheritance
No, it doesn't.
There is no Compiler-level support for inheritance in C. Nevertheless, as others have already pointed out, Object Oriented coding does not REQUIRE such support. However, its a lot easier to write OO code in C++.
C inherits from ALGOL C Programming Language
C is not an Object Oriented language. Inheritance is a property of Object Oriented languages. There is no Compiler-level support for inheritance in C. Object Oriented coding does not REQUIRE such support.
well, c is NOT OBJECT ORIENTED language so,it is not available in C
No it doesn't support inheritance because C language is not oops
No it doesn't. C is not an Object Oriented language. You can try C++ or Java for inheritance functionality.
C is not an object oriented language as inheritance is supported only in object oriented programming language C doesn't support inheritance
精彩评论