CPP06 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Base.hpp
[詳解]
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* Base.hpp :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/07/22 14:49:22 by kamitsui #+# #+# */
9/* Updated: 2025/07/22 14:49:24 by kamitsui ### ########.fr */
10/* */
11/* ************************************************************************** */
12
18#ifndef BASE_HPP
19#define BASE_HPP
20
26class Base {
27 public:
33 virtual ~Base();
34};
35
40class A : public Base {};
41
46class B : public Base {};
47
52class C : public Base {};
53
54#endif
An empty class that inherits from Base.
Definition Base.hpp:40
An empty class that inherits from Base.
Definition Base.hpp:46
A base class with a virtual destructor.
Definition Base.hpp:26
virtual ~Base()
Virtual destructor.
Definition Base.cpp:24
An empty class that inherits from Base.
Definition Base.hpp:52