Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 3 Question 93 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 93
Topic #: 3
[All CBDE Questions]

Inheritance is useful, because a contract that is derived from another contract can make use of:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Shanda
1 months ago
Woah, this is a tricky one! I'm gonna go with B, just to be safe. Can't go wrong with public and private variables, right?
upvoted 0 times
User3: I'm not so sure, I think A might be the correct answer. Public and internal functions are also useful.
upvoted 0 times
...
Teri
16 days ago
User2: Yeah, I agree. It's always good to be safe when it comes to inheritance.
upvoted 0 times
...
Rosalyn
18 days ago
User1: I think B is the right choice too. Public and private variables are important.
upvoted 0 times
...
...
Lenna
2 months ago
Haha, this question reminds me of that time I tried to inherit my dad's debt. Turns out that's not how it works! Anyway, I'm going with option A.
upvoted 0 times
Shaunna
20 days ago
Yeah, option A is the right choice. Inheritance is a powerful feature in Solidity.
upvoted 0 times
...
My
22 days ago
I think option A is correct, you can inherit all public state variables and functions.
upvoted 0 times
...
...
Carmelina
2 months ago
I was a bit confused by the options, but I think C is the right answer. The question specifically mentions public state variables, properties, and functions, which matches C.
upvoted 0 times
...
Meghann
2 months ago
Option A seems to be the correct answer. Inheritance allows a derived contract to access all the public state variables, properties, and functions of the base contract.
upvoted 0 times
Cletus
1 days ago
Yes, that's right. It's a powerful feature of Solidity.
upvoted 0 times
...
Ahmad
20 days ago
I think option A is correct, inheritance allows access to all public state variables and functions.
upvoted 0 times
...
...
Josue
2 months ago
I see your point, Martina, but I still think the correct answer is C. Only public state variables and functions should be inherited.
upvoted 0 times
...
Martina
2 months ago
I disagree, I believe the answer is B. Private state variables should not be accessible by derived contracts.
upvoted 0 times
...
An
2 months ago
I think the answer is A, because derived contracts can access all public state variables and functions.
upvoted 0 times
...

Save Cancel