https://github.com/jacintogomez/tandon_bridge_resources
Various scripts related to NYU Tandon Bridge topics (mostly OOP)
https://github.com/jacintogomez/tandon_bridge_resources
arrays binary-search-tree encapsulation file-reading file-writing linked-list object-oriented-programming overloading pointers polymorphism smart-pointers typedef
Last synced: 3 months ago
JSON representation
Various scripts related to NYU Tandon Bridge topics (mostly OOP)
- Host: GitHub
- URL: https://github.com/jacintogomez/tandon_bridge_resources
- Owner: jacintogomez
- Created: 2023-06-20T20:10:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-07-30T05:24:55.000Z (10 months ago)
- Last Synced: 2025-07-31T15:34:59.359Z (10 months ago)
- Topics: arrays, binary-search-tree, encapsulation, file-reading, file-writing, linked-list, object-oriented-programming, overloading, pointers, polymorphism, smart-pointers, typedef
- Language: C++
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tandon Bridge Resources
`BSTTemplate.cpp`: Template file for a Binary Search Tree with add/delete and print functions.
`LLTemplate.cpp`: Template file for a Linked List with add/remove and print functions.
`LLnoTemplate.cpp`: Same as previous Linked List but without templating the classes.
`SmartPointers.cpp`: Unique, shared, and weak smart pointer examples.
`marriage.cpp `: Demonstration of objects with pointers to each other.
`overloading.cpp`: Demonstration of operator overloading *==, +=, -, <<, >>, [], ++(pre/post).*
`LLandBSTtraversal.cpp`: Comparison between contents of a BST and LL with a recursive function that goes through both simultaneously.
`polymorphism.cpp`: Dynamic binding of function in an Animal class and child classes.
`BaseDerived.cpp`: Shows another type of polymorphism called slicing where a derived class loses its functions when declared as a base object.
`BaseDerivedPointers.cpp`: Shows how slicing does NOT happen when we replicate the situation above with pointers to objects instead of just objects.
`encapsulation.cpp`: Example of a bank account with credit card and debit card classes accessing its protected members.
`HugeInt.cpp`: Shows file reading and writing by taking in a huge int (much larger than C++ can handle) and storing it in a Linked List for addition with another.
`TypeDef.cpp`: Using typedef in replacement of long declarations (instead of vector>>).
`TypeDefFunctions.cpp`: Using typedef to insert functions into a vector and iterate through them like elements.