Skip to content

Lesson 9 : Deriving vs importing #1119

Discussion options

You must be logged in to vote

@GaneshDonikena

import will simply access all public state variables and functions of the contract.

Deriving you mean inheretance. By inheriting a contract another contract can use all of its public as well as internal state variables and functions, not even functions that are marked as virtual will be forced by the child contract to implement.

You should more search about inheretance it is an object-oriented programming concept and it is a fundamental thing that you must know.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@GaneshDonikena
Comment options

@krakxn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants