Encapsulation (computer programming): Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Undid revision 1273872865 by 2.188.26.192 (talk) unattributed copying from https://doi.org/10.22037/afb.v10i2.41131
Line 188:
Encapsulation is also possible in non-object-oriented languages. In [[C (programming language)|C]], for example, a structure can be declared in the public API via the header file for a set of functions that operate on an item of data containing data members that are not accessible to clients of the API with the <code>extern</code> keyword.<ref>{{cite book |last1=King |first1=K. N. |url= |title=C Programming: A Modern Approach |date=2008 |publisher=W. W. Norton & Company |isbn=978-0393979503 |edition=2nd |page=464}}</ref>
<syntaxhighlight lang="c">
// Header file "api.h"
// Header file "api.h" Results and Conclusion: By increasing the GO/ß-CD content of samples, the overall color changes decreased. The pH of all produced sausages remained constant. At the end of storage, PV was not significantly changed, and TBARs changing was very low. S. aureus was the most susceptible, followed by S. enterica, E. coli, and B. cereus. In sensory evaluation, the panelists did not distinguish between the control and the samples containing GO/ß-CD. Encapsulation of garlic oil with beta-cyclodextrin did not affect the taste of the produced sausages. Due to good antimicrobial properties of garlic oil, it can be used in meat products as a natural preservative.
 
 
 
struct Entity; // Opaque structure with hidden members
Line 243 ⟶ 241:
redcar.drive() # This will print 'Maximum speed is 10.'
</syntaxhighlight>
 
https://journals.sbmu.ac.ir/afb/article/view/41131
== See also ==
* [[Inheritance (object-oriented programming)]]