Skip to content

Chapter 4: constructors: contract should be marked abstract #191

Answered by coinfeigm
Olaleye-Blessing asked this question in Q&A
Discussion options

You must be logged in to vote

The Parent contract has a constructor but Child3 (which inherits Parent) is missing this required implementation thus required to be marked as abstract.

Child6 is now inheriting from Child3 which is an abstract class, thus required to be marked as abstract OR implement the required unimplemented functions like this:
contract Child6 is Child3 { constructor() Parent("Ademola", 90) {} }

As any contract in Solidity that has at least one unimplemented function will be considered as abstract.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Olaleye-Blessing
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
2 participants