Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts
Proudly WWW.PONIREVO.COM
Comments are closed.
I'm getting an error that "string does not name a type " when I declare a string variable in a class despite adding the string header. What could be the problem?
we have inheritance, why do we use composition then?
So when the string name is passed into object, it has to be done so in quotation marks?
I swear my brain grew like 10% after this tutorial.
Happy Birthday!!!
Pretty Cool Huh 🙂
wow men fantastic rlly thx , i come from java composed class , switch to c++ composed class all the examples that i found was in the same main.cpp and the assholes of stackoverflow start to dicking around , i finally managed to understand thanks to you =)
What I don't understand now is WHY use a different object name (bo) in the People constructor when it's going to be used the same birthObj created in main to access the Birthday class? WHY? I'm getting more and more confused each time …… Is anybody around? !
Using the Point class write a composite class called Triangle. The Triangle class will have three point
objects as its data members (to store three vertices of a triangle object). The class should have a
constructor, a function to compute area of a triangle and a print function.
harissaeed795@gmail.com please send me this code
very helpful bro, thanks for the explanation : )
its tough
I keep getting Error C3646 and Error C4430 when trying to declare or use objects in private class variables or in class function parameters? I'm missing something obvious most likely but I cant figure out what it is.. Any help would be appreciated.
me when I finish this: Pretty Cool Huh.
I am creating a Game. I have defined an abstract Player class, it has two sub-classes; Human, and Computer. In my Game class I used one Human obj, and one Computer obj. In my main I use a Game obj. This is composition. That Game Obj contains my players and I do not create them separate from my Game obj. Am I right??
Thank you Bucky
2 (possibly dumb) questions: (1):How does the program know how to assign "dateofbirth" to a 3 parameter required function? [ dateofbirth(bo) ] (2) and if the class "People" Have a birthdate object, doesn't it require the information right there and then? Isn't that creating an object itself? It requires 3 parameters.
This guy really likes milkshakes.
Trying to do in Java but when it comes to printDate for birthday object in people's class, it shows error. Any suggestions please?
this topic seems to be comfusing to many – Its all about the relationship. Inheritance ('Is A' relationship:: A Dog is an Animal) Composition ( Has A, relationship :: A Person Has A Birthday) Inheritance – – inherit the good, bad & ugly, composition include objects of other classes into your container class.
don't ask me why the youtube did loads of comments, i don't know why
don't ask me why the youtube did loads of comments, i don't know why
don't ask me why the youtube did loads of comments, i don't know why
don't ask me why the youtube did loads of comments, i don't know why
don't ask me why the youtube did loads of comments, i don't know why
@thenewboston Happy Birthday, i happen to be watching this today 🙂
@thenewboston Happy Birthday, i happen to be watching this today 🙂
@thenewboston Happy Birthday, i happen to be watching this today 🙂
@thenewboston Happy Birthday, i happen to be watching this today 🙂
Why didnt he just do class inheritance? Confused right now
where is the source code ?
just realised Bucky you are born on the same day as my mum. but not the same year
who noticed Watermelon.exe ??
I wanna cry.We can do easly without class files.But I believe you these informations will work in the future.
Why in the people class it had to be initialised with " : name(x) " when in the birthday class it was initialised inside the function itself. I don't see any differences. Would it not work if you do them the same way for both?