Pointer to Object | Pass & return Objects in Functions | C++ Programming

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this video tutorial we will go through 3 basic concepts and functionalitites that we can perform.
Key Points and Concepts -
1. Passing Objects as arguments in functions.
2. Returning Objects from functions.
3. Pointer to Objects.

We will create a C++ program and create a class CompleNumber and perform all the 3 functionalities practically.
1sr we will create a class and then a function in which we will pass objects as arguments and also return the object of the same type.

Lastly we will see how to use pointers to point to objects and we will use pointers to call member functions of objects by pointing it to the object.

Simple Snippets on Facebook-
Simple Snippets on Instagram-
Simple Snippets Google Plus Page-
Simple Snippets email ID-

UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.

Contact via email /call / FB /Whatsapp for more info

We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course
Рекомендации по теме
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

// this is how programmers start comments, right?? my vibe nowadyas: eat, sleep, " simple snippets ", repeat !!!! ;

manaspatil
Автор

Hi,


I just wanted to express my gratitude for such an excellent tutorial, as well for this one alone about Objects in Functions and Pointers which both I understand now perfectly, as well so for the entire series as it is one of the best one regarding C++ that I ever came across with! I would definitely recommend this series to anyone who really want to UNDERSTAND C++ especially to IT students (I am one as well) who did not get to learn and/or understand some concepts of programming on college or basically to anyone who wants to learn the whole language from zero and then hopefully slowly develop and advance themselves and do some more complex stuff such as Data Structures & Algorithms which I will work on after reminding myself about some concepts and of course learning something new with this series. Thank you sir and I wish you all the best!


Cheers from Croatia!

ParadoxWorks
Автор

Your videos are great . I've been watching your c++ tutorials for a while now could you explain mewhy did you use default constructor here?

shobanakrishnakumar
Автор

I've seen about a dozen of your c++ videos and compared to others, you explain it very well. Just a tip, slow down a little when talking, your accent + speed = hard to understand sometimes lol other than that, thank you for taking the time to teach us newbies

davidvolkov
Автор

You are certainly better than the course instructor who taught me on Coursera and the one that taught me in college

prithwirajdey
Автор

Thank youuu soooo muchhhh
Your video helped meeee I'm preparing for a competitive exam and I strucked at this topic but I got some clarity due to this video

missmysterious_._
Автор

You are the only one who inspired and encourage me to do program such this.
Thankyou so much....

yogeshkanare
Автор

I had a problem with pointers until I saw this video... Makes it look so easy☺️ Thanks

emmanuelmontjane
Автор

Sir you content is really really great; please keep doing this great work, this helped me and my friends a lot

rahulduvedi
Автор

can it be done with operator overloading too ?

maanav_
Автор

Why you don't write scope resolution operator : : on line number 42 when you create a function outside the class and how it's RUN I'm confuse on that point kindly answer me...!

naumanmichealmasihriazmasi
Автор

Can you please tell me, why you've made default constructor even you did'nt used that? And if used how and why?

mohdshariqsiraj
Автор

you are a talented guy! I am impressed! you make learning easy

adnanqudsi
Автор

Thank you bro
it's very helpful, clear and consistent

harrypham
Автор

Really usefull. one query - what is the difference between using object.method and pointer to object.method?

balumail
Автор

Thanks for creating amazing videos..
I have one doubt here .. when you are using temp for returning the object it's working fine. But the scope of temp variable is over after function and still it is working.
Why?

hetalgalani
Автор

Love videos from this playlist... excellent videos

anupriyasharma
Автор

Hello Sir...request you to keep on making videos on C++ programs like Linked List and Python also...although other videos are available on youtube but your teaching way is very nice. and we all enjoy learning to program..

santoshbiradar
Автор

i just realized that when i just pass"car3=car1" it automatically copies the data, even without making the copy constructor. why can that happen, and if that work does it necessary to make one even when it works without the copy function?

mauamadoudrammeh
visit shbcf.ru