Skip to content

giangnguyen-bker/object-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repo is object-implementation in C language. Perhaps you will be wondering why not use C++ instead, and why "reinvent the wheel" because the repo's purpose is just simply to learn some advanced skills in C such as struct, function pointer, static function,...

  1. Abstraction: provide public attributes and methods such as: username and getPassword(). ✅
  2. Encapsulation: hiding private attributes and methods such as: password, encodePassword(), decodePassword(). ✅
  3. Inheritance: User class inheritanced C_String class (but no "protected" feature yet). ✅
  4. Polymorphism: maybe use function pointers and preprocessor directives [].
  5. Interface: maybe use header declarations and preprocessor directives [].

alt text

Contribute

Feel free to leave comments on my repo. If you find this repo useful, please give me a star.

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