Doxybook Example
bird.h
Go to the documentation of this file.
1 #ifndef EXAMPLE_BIRD_H
2 #define EXAMPLE_BIRD_H
3 
4 #include "animal.h"
5 
6 namespace example {
10  class Bird: public Animal {
11  public:
12  Bird(const std::string& name, Bird* mother = nullptr, Bird* father = nullptr);
13  Bird(const Bird& other) = delete;
14  Bird(Bird&& Bird) noexcept;
15  ~Bird() = default;
16 
17  void swap(Bird& other) noexcept;
18 
19  void move() override;
20  void make_sound() override;
24  Bird& operator = (const Bird& other) = delete;
28  Bird& operator = (Bird&& other) noexcept;
29  };
30 }
31 
32 #endif
Definition: bird.h:10
void swap(Bird &other) noexcept
Definition: animal.h:31
void make_sound() override
Animal * father
The pointer to the father.
Definition: animal.h:195
Animal * mother
The pointer to the mother.
Definition: animal.h:190
Bird & operator=(const Bird &other)=delete
Deleted copy operator.
~Bird()=default
Bird(const std::string &name, Bird *mother=nullptr, Bird *father=nullptr)
Base class for all animals from which Bird derives.
Definition: animal.h:66
void move() override
std::string name
Definition: animal.h:196