goodnotes.hashnode.devVirtual Destructor & Constructor Philosophy in C++1️⃣ The Situation You have a base class with virtual functions. You allocate a derived object using a base pointer: class Base { public: virtual void func() { } ~Base() { cout << "Base dtor\n"; } // ❌ Non-virtual }; class Derived : publi...Sep 29, 2025·13 min read
goodnotes.hashnode.devVirtual Table (vtable), Virtual Pointer (vptr), and Object Slicing in C++C++ is a language that supports both compile-time (static) and runtime (dynamic) polymorphism. Understanding how virtual functions work under the hood is crucial for interviews. This article covers everything about vtable, vptr, and object slicing, i...Sep 29, 2025·17 min read
goodnotes.hashnode.dev📖 Complete Guide to ordered_set in C++1. Introduction C++ STL already provides: std::set → stores unique elements in sorted order, allows logarithmic-time insertion, deletion, and search. std::multiset → allows duplicates, sorted order. std::unordered_set → stores unique elements in n...Aug 14, 2025·3 min read
goodnotes.hashnode.devlist, Dequeue in C++ – Practical Notes✅ 1. Basic Initialization cppCopyEditlist<int> l = {10, 20, 30}; ✅ 2. Accessing Elements (No [] indexing) cppCopyEditauto it = l.begin(); advance(it, 2); // move to 3rd element cout << *it; // Output: 30 ✅ 3. Modifying Value at Positio...Aug 5, 2025·6 min read
goodnotes.hashnode.devReact NativeWhat is <View>? In React Native, <View> is like the <div> in HTML. It’s a container component used to group, layout, and style other components or content. You’ll use it everywhere. What is <View>? it just avoid the notch area of the device — so that...Jul 30, 2025·12 min read