#include #include #include using namespace std; class Human { public: string name; int age; double weight; Human(string name,int age,double weight) { this->name = name; this->age = age; this->weight = weight; } }; int main() { //constructor = special function that is automatically called when an object is instantiated //useful for assigning arguments to variables Human human1("Rick",65,80); Human human2("Morty", 16, 60); Human human3("Jerry", 45, 85);
Hello bro I have problem I don't know how to solve it Program - write a program uing constructer to print "I love programming" and if user enter any "string" programing should be replaced by the entered string. If anyone know how to write this program pls help
#include
#include
#include
using namespace std;
class Human {
public:
string name;
int age;
double weight;
Human(string name,int age,double weight) {
this->name = name;
this->age = age;
this->weight = weight;
}
};
int main()
{
//constructor = special function that is automatically called when an object is instantiated
//useful for assigning arguments to variables
Human human1("Rick",65,80);
Human human2("Morty", 16, 60);
Human human3("Jerry", 45, 85);
cout
thanx for that code i love your videos pls make some advance c++ videos that functions or libraries we never seen before in our life
Sir u r an amazing teacher. Pls continue the series of OOP in C++.
Continue the series bro!!!
LinearEq(double slope, double y_intercept, double x){
this->slope = slope;
this->y_intercept = y_intercept;
this->x = x;
}
So underrated
Nice video, bro!
We love you Bro :)
Sir,I really missed you. Because you have been 4 days no any video
Hello bro I have problem I don't know how to solve it
Program - write a program uing constructer to print "I love programming" and if user enter any "string" programing should be replaced by the entered string.
If anyone know how to write this program pls help
The BRO CODE!!!! BROS BEFORE THOTs! heh..