Inheritance Reading Assignment

  1. What is the base contract?
    the very first contract from a series of inherited contracts
  2. Which functions are available for derived contracts?
    public and internal ones
  3. What is hierarchical inheritance?
    where there is one contract that multiple contracts inherit from
1 Like
1

Base contract is a parent contract

2

public and internal functions

3

contract acts as a base(parent) contract for multiple derived(children) contracts

1 Like
  1. the parent contract is known as a base contract
  2. all public and internal scoped functions
  3. a base contract for multiple derived contract
1 Like
  1. Base contract is the parent contract from which all other contracts linked to it or to one another in hierarchical or or level inheritance derive from. The very first contract you write before you link it to the other.

  2. All of them?

  3. a single base contract acts as the direct link to other contracts

1 Like
  1. The base contract is any contract that has a child contract that is derived from the parent contract. This using the keyword is and takes the form as “Contract parentHelloWorld {}” as the base and the derived contract in the form of “Contract childHelloWorld is parentHelloWorld{}.”

  2. Derived contracts inherit all public and internal scoped functions and state variables from the base contract.

  3. Hierarchical inheritance is when there is a path from a parent contract to multiple child contracts in a top-down fashion. Using a modified example from answer 1: A) childAHelloWorld is parentHelloWorld; and B) childBHelloWorld is parentHelloWorld. Both children inherit from parentHelloWorld but not each other.

1 Like
  1. What is a Base contract ?

    In the process of defining Inheritance of of contracts through parent-child relationship , the parent contract is called the Base Contract.

  2. Which functions are available for derived contracts ?

    All public and internal scoped functions and state variables are available to derived contracts.

  3. What is hierarchical inheritance?

    a simple inheritance where a single contract acts as a 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, Internal and State
  3. What is hierarchical inheritance? Where a single base contract has multiple derived contracts
1 Like

What is the base contract?

  • the parent contract.

Which functions are available for derived contracts?

  • all public and internal scoped functions and state variables are available to derived contracts.

What is hierarchical inheritance?

  • a single contract acts as a base contract for multiple derived contracts.
1 Like
  1. The base contract is the one that is inherited, also called the parent contract.
  2. All public and internal scoped functions, as well as state variables, are available to derived contracts.
  3. A single contract acts as a base for multiple derived contacts.
1 Like
  1. What is the base contract? : The parent contract.
  2. Which functions are available for derived contracts? : all public and internal scoped functions and state variables.
  3. What is hierarchical inheritance? : one base contract has multiple child contracts.
1 Like

Q: What is the base contract?
A: The parent contract is the base contract.

Q: Which functions are available for derived contracts?
A: Functions from its inherited contracts are available for derived contracts.

Q: What is hierarchical inheritance?
A: Hierarchical inheritance is where a single contract acts as a base contract for multiple derived contracts.

1 Like

1.It’s a contract from which one or more contract are derived.
2.public and internal functions.
3.in this inheritance, a single contract acts as a base contract for multiple derived contracts.

1 Like
  1. The base contract is the parent contract that is being inherited.
  2. Any public or internal functions, in addition to state variables.
  3. Hierarchical inheritance follows the basic premise of simple inheritance, except that here a single contract acts as the base contract for a multitude of derived contracts.
  1. What is the base contract?

The contract has a parent known as the derived class and the parent contract is known as a base contract .

  1. Which functions are available for derived contracts?

All of the parent public and internal variables can be called within the child contract

  1. What is hierarchical inheritance?

hierarchical occurs when 2 or more child contract inherit from the base contract without inheriting from one another

1 Like

1. What is the base contract?
Parent contract. Is inherited.

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

3. What is hierarchical inheritance?
When parent contract is the base contract for multiple child contracts.

1 Like
  1. The Parent contract
  2. All public and internal scoped functions and state variables.
  3. Where a single contract acts as a base contract for multiple derived contracts.
1 Like
  1. the parent contract
  2. the functions in the base contract
  3. single contract acts as base(parent contract) others act as derived contracts (child contract)
1 Like
  1. What is the base contract?

Base contract is the parent contract, and is a contract that being inherited to the child contract.

  1. Which functions are available for derived contracts?

All public and internal scoped functions, and state variables

  1. What is hierarchical inheritance?

Inheritance that base contract has multiple derived contracts.

1 Like
  1. What is the base contract?

The base contract is the parent contract.

  1. Which functions are available for derived contracts?

All functions public and internal and state variables are available to derived contracts.

  1. What is hierarchical inheritance?

Hierarchical inheritance is when one contract acts as a base contract for multiple derived contracts.

1 Like
  1. A “base contract” is the parent contract or the contract that gets inherited by another contact.
  2. Public and Internal functions are available for derived contracts.
  3. A single base contract is the parent for multiple children contacts.
1 Like