This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_Stanislav_Mykhailenko/Lesson_5/Task_1/automobile.h
Stanislav Mykhailenko 70cc836f05
Add Lesson 5 Task 1
2024-07-20 14:48:29 +03:00

27 lines
618 B
C++

#ifndef AUTOMOBILE_H
#define AUTOMOBILE_H
#include <QObject>
class Automobile : public QObject
{
Q_OBJECT
public:
explicit Automobile(QObject *parent = nullptr);
QString getManufacturer() { return m_manufacturer; }
void setManufacturer(QString manufacturer) { m_manufacturer = manufacturer; }
float getPrice() { return m_price; }
void setPrice(int price) { m_price = price; }
QString getType() { return m_type; }
void setType(QString type) { m_type = type; }
signals:
protected:
float m_price;
QString m_type;
private:
QString m_manufacturer;
};
#endif // AUTOMOBILE_H