Public Member Functions | Private Types | Private Member Functions | List of all members
derived Class Reference
Inheritance diagram for derived:
Collaboration diagram for derived:

Public Member Functions

 derived ()
void id () override
- Public Member Functions inherited from base
 base ()
 base ()=default
 base (const base &)=delete
 base (base &&) noexcept=delete
baseoperator= (const base &)=delete
baseoperator= (base &&) noexcept=delete
virtual ~base ()=default

Private Types

using parent = base

Private Member Functions

void func3 () override final
void func4 ()

Detailed Description

Definition at line 11 of file virt.cxx.

Member Typedef Documentation

◆ parent

using derived::parent = base

Definition at line 372 of file test.cxx.

Constructor & Destructor Documentation

◆ derived()

derived::derived ( )

Definition at line 14 of file virt.cxx.

Here is the call graph for this function:

Member Function Documentation

◆ func3()

void derived::func3 ( )

Use virtual at the top level and then override in derived classes It stops you accidentally changing the signature or somebody else removing the base method. Mark methods as final once you've fixed all the bugs.

Implements base.

Definition at line 369 of file test.cxx.

◆ func4()

void derived::func4 ( )

Definition at line 373 of file test.cxx.

◆ id()

void derived::id ( )

Reimplemented from base.

Definition at line 16 of file virt.cxx.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: