Skip to content

coderarity/object-oriented-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Oriented Test

Since there are so many ways to make object oriented C code, I decided to try out a few different methods and develop my favorite one. This is the result of that experiment. It's a simple example with a few classes and a simple class structure, with a parent Animal class and a child Dog class. The Animal class has a virtual method that the Dog class overwrites. It's a pretty simple method to do some really cool things, IMO. Other ways seemed to involve a lot more boilerplate code and didn't really look as pretty as I would have liked.

Build it

make

Try it

./test

Clean it

make clean

Check it for memory leaks (requires valgrind)

make memcheck

License

All code and documentation in this repository is released under the MIT license. See license text.

About

My method for object orientation in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy