Skip to content

How the C programming language can have better encapsulation than other languages

Notifications You must be signed in to change notification settings

ahimta/c-superior-encapsulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Superior Encapsulation

A demonstration of how the C programming language can have better encapsulation than other languages if used correctly.

Assumptions

  1. Ubuntu 20.04 LTS

Getting Started

sudo apt install \
  build-essential \
  clang \
  gcc \
  valgrind

make clear
make

./encapsulation
valgrind --leak-check=full --track-origins=yes ./encapsulation

Limitations

  1. The data may have to be allocated dynamically because the required space may not be possible to calculate otherwise.
  2. It may be possible to only hide all fields.

Credits

Clean Architecture book for demonstrating this technique.

About

How the C programming language can have better encapsulation than other languages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published