Summary
This brings us to the end of this chapter. It was a heavy chapter that focused primarily on smart contracts, the different ways to create an instance, and all the important object-oriented concepts related to them, including inheritance, polymorphism, abstraction, and encapsulation. Multiple types of inheritance can be implemented in Solidity. Simple, multiple, hierarchical, and multilevel inheritance were discussed, along with the usage and implementation of abstract contracts and interfaces. It should be noted that by using inheritance in Solidity, there is eventually just one contract that is deployed instead of multiple contracts. There is just one address that can be used by any contract with a parent-child hierarchy. You learned how to use object-oriented concepts, such as inheritance, abstraction, and polymorphism, with Solidity and contracts.
The next chapter will focus purely on functions within contracts. Functions are central to writing effective Solidity contracts...