Inheritance is useful, because a contract that is derived from another contract can make use of:
Suggested Answer: C
Get Premium CBDE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
34 comments · newest first
JO
Joni
11 months ago
Not sure about C, seems like it misses a lot of important stuff.
TA
Tamra
11 months ago
A is the way to go, no doubt about it!
LE
Leonida
11 months ago
Wait, can you really use all public and internal functions? Sounds too good to be true!
VO
Vonda
12 months ago
I think B is correct, private variables shouldn't be accessible.
AN
Antonette
12 months ago
Definitely A, that's how inheritance works!
CL
Claudia
12 months ago
I thought all public state variables and properties were accessible, but I’m confused about the modifiers and whether they’re included in B or A.
TE
Tegan
1 year ago
I feel like C is too restrictive since it excludes internal and external functions, but I can't recall the exact rules.
KI
Kirby
1 year ago
I remember practicing a question similar to this, and I think it was A because it mentioned both public and internal access.
SA
Salena
1 year ago
I think inheritance allows access to public and internal functions, but I'm not sure about the modifiers part.
JO
Jodi
1 year ago
I think the key here is understanding the differences between public, internal, and external access modifiers. A good strategy would be to quickly review those before answering the question.
RA
Raylene
1 year ago
Okay, I got this. The answer is A - a derived contract can access all public state variables, properties, functions, and modifiers from the base contract. The other options are too restrictive.
JO
Jovita
1 year ago
Hmm, I'm a bit unsure about this one. I know inheritance is important, but I'm not totally clear on the specifics of what gets inherited. I'll need to review my notes on access modifiers before answering.
RO
Ronnie
1 year ago
I think this is a pretty straightforward question. The key is understanding the different access modifiers in Solidity and how they affect inheritance.
SH
Shizue
1 year ago
I'm a little confused by the wording of the question. Can a derived contract really access private variables and functions from the base contract? That doesn't seem right to me, but I could be misremembering the rules around inheritance.
RO
Roselle
1 year ago
I'm a bit confused here. The question mentions the share price was static before the announcement, but then dropped 20% after. Does that rule out weak form efficiency? I'm not totally sure which option is the best fit.
FR
Francine
1 year ago
Okay, let me see... Licensure grants the legal authority to operate, while regulation sets the rules and standards. I think A is the correct choice for this question.
SO
Sol
1 year ago
Ah, this is a good one. I remember learning about Axis camera I/O ports in my networking class. I think the answer is 5V, so I'll select option C.
SH
Shanda
2 years 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?
TY
Ty
1 year ago
User1: That's a good point, but I still think B covers all the important variables and functions.
EI
Eileen
1 year ago
User3: I'm not so sure, I think A might be the correct answer. Public and internal functions are also useful.
TE
Teri
1 year ago
User2: Yeah, I agree. It's always good to be safe when it comes to inheritance.
RO
Rosalyn
1 year ago
User1: I think B is the right choice too. Public and private variables are important.
LE
Lenna
2 years 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.
SH
Shaunna
1 year ago
Yeah, option A is the right choice. Inheritance is a powerful feature in Solidity.
MY
My
1 year ago
I think option A is correct, you can inherit all public state variables and functions.
CA
Carmelina
2 years 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.
ME
Meghann
2 years 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.
KA
Katina
1 year ago
Exactly, it helps in reusability and maintaining code consistency.
GL
Glory
1 year ago
So, inheritance is like extending the functionality of a contract?
CL
Cletus
1 year ago
Yes, that's right. It's a powerful feature of Solidity.
AH
Ahmad
1 year ago
I think option A is correct, inheritance allows access to all public state variables and functions.
JO
Josue
2 years ago
I see your point, Martina, but I still think the correct answer is C. Only public state variables and functions should be inherited.
MA
Martina
2 years ago
I disagree, I believe the answer is B. Private state variables should not be accessible by derived contracts.
AN
An
2 years ago
I think the answer is A, because derived contracts can access all public state variables and functions.