Ethereum Smart Contracts with Solidity: Functions in Solidity
Blockchain
| Beginner
- 14 videos | 1h 22m 41s
- Includes Assessment
- Earns a Badge
Because functions in smart contracts are at the heart of any operation which is performed in the Ethereum network, this 14-video course covers different ways to define functions depending on their use case. Explore function arguments, return types, and access modifiers, before delving into object-oriented concepts: function polymorphism, abstract contracts, how to override functions in derived contracts, inheritance, and different visibility levels: private, internal, external, and public (default). Demonstration models provide a realistic idea of how a function's visibility affects where it can be invoked from; a private variable defined within one smart contract can still be accessed from another contract, as long as its getter function is accessible. As you progress through this course, you will gain a fuller understanding of coding smart contracts by using Solidity for your Blockchain solutions. You will know the types of operations which can incur a gas cost and how these can be limited with access modifiers. You will also learn how to define and use abstract contracts while controlling access to your functions by using the four visibility levels.
WHAT YOU WILL LEARN
-
Outline the key concepts covered in this courseBuild and deploy smart contracts utilizing constructor argumentsRecognize how to write a getter function to return the value of a state variable in a smart contractIdentify the effect of using the "view" access modifier for a functionDefine a setter function to update the state variables of a smart contractIdentify the different ways in which the return types of a function can be specifiedRecognize the effect of using the "pure" access modifier for a function which does not access the contract state
-
Distinguish between "view" and "pure" functionsUtilize polymorphism to create functions with the same name but with different behaviors within a smart contractUse inheritance to define a smart contract derived from another contractWork with abstract smart contracts to define the desired behavior of contracts derived from itCreate smart contracts with functions of varying visibility and recognize their access restrictionsIdentify how different combinations of visibility levels for variables and functions can affect access to dataIdentify the key concepts behind function polymorphism, visibility levels, and access modifiers
IN THIS COURSE
-
2m 46s
-
8m 30sDuring this video, you will learn how to build and deploy smart contracts using constructor arguments. FREE ACCESS
-
7m 16sUpon completion of this video, you will be able to recognize how to write a getter function to return the value of a state variable in a smart contract. FREE ACCESS
-
3m 6sFind out how to identify the effect of using the "view" access modifier for a function. FREE ACCESS
-
7m 57sIn this video, find out how to define a setter function to update the state variables of a smart contract. FREE ACCESS
-
8m 20sIn this video, you will identify the different ways to specify the return type of a function. FREE ACCESS
-
5m 48sAfter completing this video, you will be able to recognize the effect of using the "pure" access modifier for a function which does not access the contract state. FREE ACCESS
-
5m 34sDuring this video, you will learn how to distinguish between "view" functions and "pure" functions. FREE ACCESS
-
4m 10sDuring this video, you will learn how to use polymorphism to create functions with the same name but with different behaviors within a smart contract. FREE ACCESS
-
6m 26sIn this video, you will learn how to use inheritance to create a smart contract that is based on another contract. FREE ACCESS
-
6m 12sIn this video, you will work with abstract smart contracts to define the desired behavior of contracts derived from it. FREE ACCESS
-
4m 58sIn this video, you will create smart contracts with functions of varying visibility and recognize their access restrictions. FREE ACCESS
-
6m 26sIn this video, you will identify how different combinations of visibility levels for variables and functions can affect access to data. FREE ACCESS
-
5m 13sLearn how to identify the key concepts behind function polymorphism, visibility levels, and access modifiers. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.