//Create an objects of one class
#include<iostream>
using namespace std;
// Create a Car class with some attributes
class Car {
public:
string brand;
string model;
int year;
};
int main() {
// Create an object of Car
Car carObj1;
carObj1.brand = "High Top";
carObj1.model = "X001";
carObj1.year = 2000;
// Print attribute values
cout <<"Brand: "<< carObj1.brand <<endl;
cout<< "Model: " << carObj1.model<<endl;
cout<< "Year: " << carObj1.year << endl;
return 0;
}
► Shopify For Beginners :- https://youtube.com/playlist?list=PLm...► Google AdSense :- https://www.google.com/adsense/start/► Google Cloud Boost Playlist - https://www.youtube.com/playlist?list...► Google Cloud SQL Playlist:- https://youtube.com/playlist?list=PLm...► GitHub Playlist - https://youtube.com/playlist?list=PLm...► Flutter For Beginners :- https://youtube.com/playlist?list=PLm...► WordPress Free themes For Beginners :- https://youtube.com/playlist?list=PLm...► HTML & CSS and JAVASCRIPT Projects:- https://youtube.com/playlist?list=PLm...► C++ For Beginners Playlist :- https://youtube.com/playlist?list=PLm...► OOP in C++ : https://youtube.com/playlist?list=PLm9Gsf8MIeRfQItd4qclHckYmsnu3gzo7► C++ Basic Programs : https://youtube.com/playlist?list=PLm...► SQL Tutorials For Beginners: https://youtube.com/playlist?list=PLm...🔁 Facebook: https://www.facebook.com/mscubetechco...🛑 YouTube : https://www.youtube.com/channel/UC1Gb...#html #css #c++ #cpp #mscubetech #coding #programming #javascript #mscubetech
0 Comments
Thanks for Supporting me