Course details

Ethereum Smart Contracts with Solidity: Functions in Solidity

Ethereum Smart Contracts with Solidity: Functions in Solidity


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Explore the various types of functions in the Solidity language - from basic getters and setters to restricted access functions. Also learn how polymorphism and inheritance are implemented in Solidity.



Expected Duration (hours)
1.4

Lesson Objectives

Ethereum Smart Contracts with Solidity: Functions in Solidity

  • outline the key concepts covered in this course
  • build and deploy smart contracts utilizing constructor arguments
  • recognize how to write a getter function to return the value of a state variable in a smart contract
  • identify the effect of using the "view" access modifier for a function
  • define a setter function to update the state variables of a smart contract
  • identify the different ways in which the return types of a function can be specified
  • recognize the effect of using the "pure" access modifier for a function which does not access the contract state
  • distinguish between "view" and "pure" functions
  • utilize polymorphism to create functions with the same name but with different behaviors within a smart contract
  • use inheritance to define a smart contract derived from another contract
  • work with abstract smart contracts to define the desired behavior of contracts derived from it
  • create smart contracts with functions of varying visibility and recognize their access restrictions
  • identify how different combinations of visibility levels for variables and functions can affect access to data
  • identify the key concepts behind function polymorphism, visibility levels, and access modifiers
  • Course Number:
    it_bccscsdj_04_enus

    Expertise Level
    Beginner