# data[].attributes.body
#include <iostream>
using namespace std;

class Oda {
private:
double uzunluk;
double genislik;
double yukseklik;

public:
void veriAl(double uzn, double gns, double yks) {
uzunluk = uzn;
genislik = gns;
yukseklik = yks;
}

double alanHesapla() {
return uzunluk * genislik;
}

double hacimHesapla() {
return uzunluk * genislik * yukseklik;
}
};

int main() {
double uzunAl;
double genislikAl;
double yuksekAl;
cout << " \n Double verisi olan bir uzunluk Giriniz: ";
cin >> uzunAl;
cout << " \n Double verisi olan bir genislik Giriniz: ";
cin >> genislikAl;
cout << " \n Double verisi olan bir genislik Giriniz: ";
cin >> yuksekAl;
Oda suitOda;
suitOda.veriAl(uzunAl, genislikAl, 3.2);
cout << "\n Suit Oda Alan: " << suitOda.alanHesapla() << endl;
cout << "Suit Oda Hacim: " << suitOda.hacimHesapla() << endl;
return 0;
}

# data[].attributes.body
#include <iostream>
#include <cstring>
#include <string>

using namespace std;
class Ogrenci {
public:
int ogr_no;
string ogr_ad;
string ogr_soyad;
Ogrenci(int no, string ad, string soyad){
ogr_no=no;
ogr_ad=ad;
ogr_soyad=soyad;
}

void goster(){
cout<<"Ogrenci Bilgi: " << ogr_no <<" "<< ogr_ad << " " << ogr_soyad << endl;
}

};
int main(void) {
Ogrenci ogr1(536, "Zeynep", "Yavuz");
Ogrenci ogr2(5025,"Elifnur", "Cebeci");
Ogrenci ogr3(552,"Miray", "Alaca");
Ogrenci ogr4(655,"Oytun", "Unlu");
ogr1.goster();
ogr2.goster();
ogr3.goster();
ogr4.goster();

return 0;
}

# data[].attributes.body
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
// Bazi niteliklere sahip bir Araba sinifi olusturun
class Araba {
public:
string marka[30];
string model[30];
int yil;
int fiyat;
Araba(string a, string s, int d, int f){

yil= d;
fiyat= f;
}
};
int main() {
Araba araba1("Togg", "SUV", 2023, 233333);
Araba araba2("Tesla", "X", 2020, 3000000);
cout << "Araba 1: " << araba1.marka << ", " << araba1.model << ", " << araba1.yil << ", " << araba1.fiyat << " \n";
cout << "Araba 2: " << araba2.marka << ", " << araba2.model << ", " << araba2.yil << ", " << araba2.fiyat << " \n";
return 0;
}

# data[].attributes.body
#include <iostream>
#include <cstring>
using namespace std;
// Bazi niteliklere sahip bir Araba sinifi olusturun
class Araba {
public:
char marka[30];
char model[30];
int yil;
int fiyat;
};
int main() {
// Ilk Araba nesnesini olusturun
Araba araba1;
strcpy(araba1.marka, "Suzuki");
strcpy(araba1.model, "Vitara");
araba1.yil = 2016;
araba1.fiyat = 225000;
// Ikinci Araba nesnesini olusturun
Araba araba2;
strcpy(araba2.marka, "Volkswagen");
strcpy(araba2.model, "T-Roc");
araba2.yil = 2020;
araba2.fiyat = 360000;
// Nesnelerin ozelliklerini yazdirin
cout << "Araba 1: " << araba1.marka << ", " << araba1.model << ", " << araba1.yil << ", " << araba1.fiyat << " \n";
cout << "Araba 2: " << araba2.marka << ", " << araba2.model << ", " << araba2.yil << ", " << araba2.fiyat << " \n";
return 0;
}

# data[].attributes.body
#include <iostream>
using namespace std;

class Car {        // The class
public:          // Access specifier
string brand;  // Attribute
string model;  // Attribute
int year;      // Attribute
int fiyat;
Car(string x, string y, int z, int a); // Constructor declaration
};

// Constructor definition outside the class
Car::Car(string x, string y, int z, int a) {
brand = x;
model = y;
year = z;
fiyat = a;
}

int main() {
// Create Car objects and call the constructor with different values
Car carObj1("BMW", "X5", 1999, 500000);
Car carObj2("Ford", "Mustang", 1969, 599999);
Car carObj3("Togg", "SUV", 2023, 10000000);

// Print values
cout << carObj1.brand << " " << carObj1.model << " " << carObj1.year << "\n";
cout << carObj2.brand << " " << carObj2.model << " " << carObj2.year << "\n";
cout << carObj3.brand << " " << carObj3.model << " " << carObj3.year << "\n";
return 0;
}

# data[].attributes.body
#include <iostream>
using namespace std;

class Car {        // The class
public:          // Access specifier
string brand;  // Attribute
string model;  // Attribute
int year;      // Attribute
Car(string x, string y, int z) {  // Constructor with parameters
brand = x;
model = y;
year = z;
}
};

int main() {
// Create Car objects and call the constructor with different values
Car carObj1("BMW", "X5", 1999);
Car carObj2("Ford", "Mustang", 1969);
Car tofas("Tofask", "Tofas", 1998);

// Print values
cout << carObj1.brand << " " << carObj1.model << " " << carObj1.year << "\n";
cout << carObj2.brand << " " << carObj2.model << " " << carObj2.year << "\n";
cout << tofas.brand << " " << tofas.model<< " "<< tofas.year << "\n";
return 0;
}