<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac" -->

---
title: Code & Play 27 C++ Using Parent Class Function Names
description: Explains why and how to use the `using` declaration in C++ derived classes to bring all overloaded versions of a base class function into the derived class...
canonical: https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Code & Play 27 C++ Using Parent Class Function Names | daily.dev
og:description: Explains why and how to use the `using` declaration in C++ derived classes to bring all overloaded versions of a base class function into the derived class...
og:url: https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac
og:image: https://api.daily.dev/og/posts/XPaz7sAAC.png
og:image:alt: Code & Play 27 C++ Using Parent Class Function Names
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Code & Play 27 C++ Using Parent Class Function Names

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 0 upvotes · 0 comments

## Summary

Explains why and how to use the `using` declaration in C++ derived classes to bring all overloaded versions of a base class function into the derived class scope. Covers the concept of name hiding — where a derived class function with the same name masks base class overloads — and demonstrates with a concrete code example showing both non-virtual and virtual function scenarios.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@angellovercc/code-play-27-c-using-parent-class-function-names-8f3f45970c0d>

## Similar posts on daily.dev

- [Wages of Inheritance](https://daily.dev/posts/wages-of-inheritance-m0y7kf0tf) · The Daily WTF · 0 upvotes · 1 comments
- [Beyond Virtual Functions: High-Performance Polymorphism with C\+\+17 std::variant and std::visit](https://daily.dev/posts/beyond-virtual-functions-high-performance-polymorphism-with-c-17-std-variant-and-std-visit-h29ex98g7) · Towards Dev · 0 upvotes · 0 comments
- [August 28, 2026](https://daily.dev/posts/august-28-2026-byjcbnn7u) · The Old New Thing · 1 upvotes · 0 comments
- [A reinterpret\_cast Trap](https://daily.dev/posts/a-reinterpret-cast-trap-noyt1yvas) · Jacek Galowicz · 0 upvotes · 0 comments
- [C\+\+26: constexpr virtual inheritance](https://daily.dev/posts/c-26-constexpr-virtual-inheritance-5l1e11nxn) · Sandor Dargo · 2 upvotes · 0 comments

---

Tags: [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Code & Play 27 C++ Using Parent Class Function Names","url":"https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac"},"datePublished":"2026-07-21T02:28:02.742Z","dateModified":"2026-07-21T02:30:07.066Z","description":"Explains why and how to use the `using` declaration in C++ derived classes to bring all overloaded versions of a base class function into the derived class...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/798691ea561a79f26ff7055f4856747c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/798691ea561a79f26ff7055f4856747c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/code-play-27-c-using-parent-class-function-names-xpaz7saac","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c++","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Code & Play 27 C++ Using Parent Class Function Names"}]}
```

