Inheritance Reading Assignment

  1. What is the base contract?
    The base contract is the one “at the top” of the other one (know as the child contract) which interacts “from below” (or whatever side, at least interacts with the base contract) with the so called parent contract. The child contract inherits from a parent contract (or base contract).

  2. Which functions are available for derived contracts?
    All the public and internal scoped functions.

  3. What is hierarchical inheritance?
    For example: Instead of contract C inheriting from contract B and contract B inheriting from contract A. Then both contract B and C can inherit from contract A simultaneously. Then contract A acts as a base contract for these contracts.

1 Like
  1. Parent contract that child contract inherit from.

  2. Internal and public.

  3. When a contract is the base contract of multiple derived contracts.

1 Like
  1. Base contract is the contract that is inherited. It is also known as the parent contract.
  2. All public and internal scoped functions are available for derived contracts.
  3. Hierarchical inheritance is where a single contract acts as base for multiple derived contracts.
1 Like
  1. The base contract is a contract which derived contracts inherit from
  2. All public and internal scoped functions and state variables are available to derived classes
  3. Hierarchical inheritance is when a single contract acts as the base contract for multiple derived contracts
1 Like
  1. The parent contract.

  2. All public and internals.

  3. Hierarchy between contract,.parent and childs…

1 Like
  1. Base Contract: The parent contract is known as a base contract and has a derived class
  2. Functions available: The variable, functions, modifiers, and events are available for derived contracts.
  3. Hierarchical inheritance: A single contract acts as a base contract for multiple derived contracts.
1 Like
  1. The base contract is also called the ‘parent’ contract - it is the contract from which the other contract(s) inherit
  2. Public and internal functions are available for derived contracts
  3. When a single contracts acts as parent contract for multiple derived contracts
  1. What is the base contract?
    The base contract is the parent contract in a multi contract relationship, so the contract that is inherited.

  2. Which functions are available for derived contracts?
    All public and internal functions and variables are available for the child contract from the parent contract.

  3. What is hierarchical inheritance?
    It means that a contract can act as parent contract for multiple child contracts instead of just one.

  1. Base contract is the contract that is inherited. It is also known as the parent contract.
  2. All public and internal scoped functions are available for derived contracts.
  3. When a single contracts acts as parent contract for multiple derived contracts
  1. The base contract is the parent contract.
  2. External and Public functions. This is used to allow tokens to update code without the ability to ever change supply etc.
    3.Contracts have base contract but allow child contracts to be made that inherit code from previous contracts.
1 Like

1. What is the base contract?
The base contract is a term referring to the parent contract in an inheritance relationship. That is to say that a deriving contract inherits from a base contract.

2. Which functions are available for derived contracts?
Deriving contracts may access base contract declarations specifying public and internal visibility.

3. What is hierarchical inheritance?
Hierarchical inheritance defines a contract derivation structure where more than one child contract inherits from a single parent contract.

1 Like
  1. The parent contract from which child contracts are derived.
  2. Public and internal.
  3. When multiple contracts are derived from the same contract.
1 Like
  1. What is the base contract?
    **The base contract is the initial contract that the new contract is derived from. AKA the “Parent Contract.” Contract A is created - and then contract B is created, deriving its operations from contract A. This makes contract A the parent and contract B the child! **

  2. Which functions are available for derived contracts?
    **All public and internal scoped functions and state variables are available for deriving contracts to use when inheriting from a parent contract. **

  3. What is hierarchal inheritance?
    Hierarchal inheritance is similar to simple inheritance, but a single contract can act as a base contract for multiple deriving contracts. Contract B and Contract C can both derive properties from Contract A.

1 Like
  1. The base contract is the one which other contacts inherit and is also known a the parent.

  2. The child will inherit the functions of the base contract (parent).

  3. Hierarchical inheritance - when a single contact acts as base contact for multiple derived contracts. Base contract A (parent) is inherited by child contacts B,C in a pyramid structure.

contract A {…} // parent
contract B is A { …} // child
contract Cis A {…} // child

1 Like
  1. The base contract is what the parent contract from which functions are inherited

  2. Public and internal functions as well as state variables are available to child contracts from the parent

  3. Hierarchical inheritance is when one base contract has multiple child contracts that derive functionality from it

1 Like
  1. A base contract is the parent contract, in other words its the inherited contract

  2. All public and internal scoped functions

  3. A base contract for multiple derived contracts

1 Like
  1. The base contract is the parent contract from where child contracts can be derived.

  2. Public and internal functions are available to derived contracts.

  3. Hierarchical inheritance is when multiple child contracts derive directly from a single base contract.

1 Like
  1. The base contract is the parent contract.

  2. Public and internal are available for child contracts (derived contract)

  3. Hierarchical inheritance is when a base contract has multiple derived contracts.

1 Like
  1. What is the base contract?
    Base contract is parent of contracts inherit
  2. Which functions are available for derived contracts?
    All public and internal scoped functions and state variables
  3. What is hierarchical inheritance?
    Hierarchical inheritance make single contract acts as base contract for multiple derived contracts
1 Like
  1. What is the base contract?
    The parent Contract

  2. Which functions are available for derived contracts?
    public and internal functions and state variables are available to derived contracts.

  3. What is hierarchical inheritance?
    A single case contract which has multiple derived contracts.

1 Like