The lessons (the full course version) just pops up my news feed. I'm not here in this course series yet, but soon I'll get on to these lessons. Just finishing the javascript course. Pure like bro!!!! 👍👍👍
Hey Brocade , just wanted to notify you a error not actually so it's error in age where compiler instead of giving the age of human1.age just compiles in the form of F after compilation and I searched it on the the internet and found out that it's a Floating value so solution is just add when writing code "Human1.age="70"; " then the compiler will give 70 while compiling which is what we want !
You said class is better than structs because they can have methods, well we can create functions with structs too! The difference is only the first have the methods inside? Thank you!
Structures can only have member variables where as class can also have member functions that an object can perform along with its member variables(attributes)
I've created the Human class, but when setting human1.name within int main(), name is highlighted red with class "Human" has no member "name". If I run the code though, it runs without error and outputs the name as expected. Any idea how to resolve this in VSCode?
#include
class Car{
public:
std::string make;
std::string model;
int year;
std::string color;
void accelerate(){
std::cout
And then Rick realized he's a c++ object and escaped the matrix 😂
Haahahhaah funny
You are a very very good teacher and I hope your C++ vids get way more views and praise
The lessons (the full course version) just pops up my news feed. I'm not here in this course series yet, but soon I'll get on to these lessons. Just finishing the javascript course.
Pure like bro!!!! 👍👍👍
Awesome. I really liked that you made 2 examples.
By default the members in structures are public. But in classes by default members are private.
Thank you for this very useful video!
Perfect explanation and also nice, clear voice - easy to understand for a not-english-man like me. Thanks a lot!!!😀
Real Bro right there. Thanks Rick!
I hope you can make oop playlist in c++
thanks bro this is the best video ever seen in youtube...GOD BLESS U.you are like angle for me..keep uploading bro
Smooth and to the point as usual. Common Bro Code W
WWWWWWW
Hey Brocade , just wanted to notify you a error not actually so it's error in age where compiler instead of giving the age of human1.age just compiles in the form of F after compilation and I searched it on the the internet and found out that it's a Floating value so solution is just add when writing code "Human1.age="70"; " then the compiler will give 70 while compiling which is what we want !
"humans sleep right?"
i just learnt that in arduino(C++ for a microcontreller) code, if you include servo.h, you can create an object caled servo from the class Servo
You said class is better than structs because they can have methods, well we can create functions with structs too!
The difference is only the first have the methods inside?
Thank you!
THE LEGEND IS BACK!!!!!!!!!
Need help, still confused, is it like struct but with functions?
smooth Rick and Morty reference
I assume you wouldn't actually code attributes into the program because practically they would be entered by a user or read from a data base?
Yes you are correct, however you will still declare the attributes but you will not assign it a value.
looks like you don't have to New Up an object - is C# is making me code MORE than C++ (Egregious)
what about the private modifier?
I see Constructors are coming in the next lesson 😋
earnd my sub!
what's the difference from classes and structs
By default the members in structures are public. But in classes by default members are private.
Structures can only have member variables where as class can also have member functions that an object can perform along with its member variables(attributes)
@@tahawaseem6989 even structures can have member functions
With you OOP is easy
I've created the Human class, but when setting human1.name within int main(), name is highlighted red with class "Human" has no member "name". If I run the code though, it runs without error and outputs the name as expected. Any idea how to resolve this in VSCode?
did you make the variables public?
when ı saw structs ı tougth it will be our objects. Structs can not be objects because ıt does not have any method if ı am right.
class person{
public:
string name;
int length ;
int birth_year;
void study()
{
cout
#include
class Human{
public:
std::string name;
int age;
bool isInjured;
void eat(){
std::cout
Rick & Morty fan 😂😂😂
RICK AND MORTY MENTIONED!!????? WHAT IS A PROPER EPISODE!!??!?
Comment no 24
Should've made it a woman object instead of a human object
#include
using namespace std;
class school
{
public: //access specifier
int roll;
string name;
char sec;
void teach()
{
cout
#include
class Dog{
public:
std::string name;
std::string breed;
int age;
void bark(){
std::cout