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

28 lines
618 B
C
Raw Permalink Normal View History

2024-07-20 11:48:29 +00:00
#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