Level 1 : What type of inheritance is illustrated in the following Python code?


class A():
    pass
class B(A):
    pass
class C(B):
    pass

Author: SarojiniD | Tags: inheritance | 1859+ Python FAQs | Share
conditional-statement | feature | collection | append | boolean | raise-statement | object-attribute | update | tuple | basic | booleans | complex | default-arguments | using-the-threading-module | using-lists-as-stacks | def | binary | data-structures | virtual-environment | data-type | complex-number | condition | unit-testing | typeerror | working-with-binary-files-(rb,-wb) | bitwise | conditional-statements | datatype | using-os-and-pathlib-modules | built-in | design-principle | advanced-file-operations | __init_subclass__ | working-with-temporary-files-using-tempfile | variable | why-use-multiprocessing-over-threading?-(gil) | descriptors | decimal | using-yield-in-functions | async | turtle | assignment-operator | while-and-for-loop | comparison | command-line-parsing | collections | decorator | difference-between-threads-and-processes | zip | attribute | invalid-list | working-with-dates-and-times | class-and-inheritance | regular-expressions | anchors-(^,-$) | control-flow | exception-handling | reading:-read(),-readline(),-readlines() | split | python-history | file_handling | nested-loop | operators | boolean-masking | oop | generator | introduction-to-python | built-in-function | thread-safe-data-structures-(queue.queue) | conditional-statement | identifier | loops | slice | arbitrary-arguments-(*args,-**kwargs) | arithmetic-operation | asyncio-module | matrix | module | key-value-pairs | goto-function | constructor | list,-set,-and-dictionary-comprehensions | function-and-scope | recursion | classes | expand-tab | control-statement | error-handling | class-decorators | package-management | syntax-error | asyncio | oops | memory-management | namespace | shallow-copy | logical-operator | functions | directory-operations | string-formatting | class-and-instance-variable | data-structure | pep | debugging | managing-directories-with-os-and-shutil | pandas | comment | join | random-function | function-argument | reading-and-writing-large-files-efficiently | gil | global-variable | expression | dictionary | list | immutability | membership-operators-(in,-not-in) | pickling--unpickling | assignment-operators | string-formatting | round | operator | built-in-function | magic-method | tuples | using-map()-for-transformations | else | sum-function | python | zfill-function | yield | id-function | control-flow | sorting-and-ranking | installation | enumerate() | logical-operators | memory | polymorphism | assert | range | datetime.date,-datetime.time,-datetime.datetime | reading-and-writing-files | matrix-list-comprehension | loop | iterators | method | file-handling | stack | writing:-write(),-writelines() | counter | scientific-notation | zip-function | syntax-error | __future__ | benefit | python-repl | namedtuple | data-structures-in-python | string-method | inherit | math | context-manager | list-mutation | docstring | operand | multiple-inheritance | filter-function | __all__-attribute | print-statement | logical-operation | filter | operator-overloading | using-else-and-finally | int | while-else-loop | binary-operation | syntaxerror | built-in-modules | min-function | objects | defining-functions | sys-module | encapsulation | formal-and-actual-parameter | python-syntax-and-structure | mathematics | python-module | return-statement | for | mathematical-function | aggregating-data-with-functools.reduce() | python_version | integer | thread | dictionaries | sorting | statement | data-type | name-mangling | literal-characters-and-special-characters | boolean-and-non-boolean | odd-number | comprehension | method-overloading | mutable | quantifiers-(*,-+,-?,-{}) | call | creating-and-starting-threads | precedence | version | tuple-methods | mapping-function | floats | map-function | generators | copy | format | sets | else-statement | dataframe-and-series-objects | application | access-modifier | using-join()-and-is_alive()-methods | dictionary-methods | counter-function | thread-synchronization | type-conversion-and-casting | exponentiation | list-vs-tuple | postfix | global-variable | round-function | array | filtering-and-indexing | input | library | error-handling | dictionary-comprehensions | conversion | string-methods | multithreading | rollback | string-iteration | deep-copy | exception | type_conversion | pass | max-min | threading | sorted | string-slicing | string-concatenation | encoding | python-django | using-assertions-(assertequal,-assertraises) | parsing-with-strptime | bitwise-operator | arithmetic-expression | time-series-with-pandas | operations | escape-operator | bitwise-operator | class | function | recurssion | destructor | software-design | tuple-unpacking | functional-programming | string-manipulation | indentation | sum() | match | exception-handling | static-method | immutable-data-type | loop-control | random | methods | data_structure | input-function | numpy | precedence-and-associativity | swapping | lambda-function | overriding-methods | data-structure | min-max-function | syntax | regular-expression | choice | class-and-object | set | multiple-inheritance | touples | creating-custom-modules | list-method | compute | global-keyword | raise | default-mutable-argument | dicts | datetime | data-types | virtual-environment | mysql | joining-and-merging-dataframes | while-loops | center | error | data-type-conversions | list-indexing | logical-operator | factorial-function | list-comprehension | multiple-except-blocks | walking-through-directories-using-os.walk() | list-methods-and-slicing | higher-order-function | string-method | lists | pseudocode | intering | list-operation | string | type-conversion | fabs-function | lambda | heap-memory | head-and-tail | global | string-slicing | opening-files-(open()) | handling-missing-values-(fillna,-dropna) | introduction-to-threads | file-handling | numeric | indexing:-loc-vs-iloc | operator-or | test-discovery | python-operators | set-operation | functional-programming | file | type-conversion | iterable | print | indexing | loop-control-statements | formatting-with-strftime | list-slicing | slicing | matplotlib | regex | introduction-to-multiprocessing | floating-point-precision | identity-operator | math-copysign | operator-and | while-loop | init | overflow | generators-in-python | working-with-file-paths | lambda-functions | parameter | multiprocessing | single-inheritance | frozenset | inheritance | list-join | iterator | sys | strings | list-comprehension | import-method | version-check | implementation | with-statement | staticmethod | input-function | identity-operator | list-comprehensions | integers | keyword | identity-operators-(is,-is-not) | interpreter | lambdas ...