Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does datablock inheritance work?

Inheritance
0
Posted

How does datablock inheritance work?

0

Note: When talking about inheritance, the item that is inherited from is called the parent and the item that is doing the inheriting is called the child. When one datablock is derived from another datablock, it inherits all properties and functions from its parent. This means that if you derive a new datablock from an old one and don’t override any values in the new datablock, the datablocks will be exactly the same. In reality, when you derive a new datablock from the parent, you will want to override some properties or functions. In the case of properties, you do this by simply placing lines inside the new datablock’s braces that define the new data. In the case of functions you declare them exactly as if the new datablock was like any other datablock. Remember, when you derive a datablock from the parent, nothing about the parent changes in any way.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123