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