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

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

Simple Snippets

6 лет назад

82,159 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@SimpleSnippets
@SimpleSnippets - 26.08.2019 13:36

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 ✌

Ответить
@sheikhomer991
@sheikhomer991 - 06.08.2023 17:53

Didnt understand,not explained clearly

Ответить
@chrisv2294
@chrisv2294 - 28.07.2023 21:42

great video thanks a lot, but no need for the first contructor you buit: ComplexNumber(){}

Ответить
@jamesnash9675
@jamesnash9675 - 01.07.2022 12:28

you are the best........masum

Ответить
@maanav_77
@maanav_77 - 09.01.2022 14:50

can it be done with operator overloading too ?

Ответить
@mba2ceo
@mba2ceo - 02.01.2022 13:10

PLZ do a vid of link list of Dynamic Users entered objects

Ответить
@mba2ceo
@mba2ceo - 02.01.2022 13:04

How can a USER add Objects ?

Ответить
@sreenathak6355
@sreenathak6355 - 07.11.2021 09:03

Here we are returning temp to comp3. But temp is an object declared in inside add2number function . So the object temp is having scope only inside that functions right Then how it can return values to comp3 Please explain

Ответить
@RealHubertCZGameplayLetsPlay
@RealHubertCZGameplayLetsPlay - 19.09.2021 01:59

thank you so much my man

Ответить
@giakiendau3968
@giakiendau3968 - 04.09.2021 11:33

your rap is so good

Ответить
@mohdshariqsiraj9573
@mohdshariqsiraj9573 - 16.08.2021 19:08

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

Ответить
@naumanmichealmasihriazmasi2716
@naumanmichealmasihriazmasi2716 - 09.08.2021 06:09

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...!

Ответить
@saptathirtachoudhury4158
@saptathirtachoudhury4158 - 19.05.2021 19:55

You are sexy coder bro 😘

Ответить
@anonymousop7512
@anonymousop7512 - 26.03.2021 08:31

All I got from this video: 'EXCRETION OPERATOR'.

Ответить
@shobanakrishnakumar2818
@shobanakrishnakumar2818 - 21.02.2021 23:40

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?

Ответить
@tarakarama2009
@tarakarama2009 - 11.02.2021 09:01

A small correction real part should be of data type float for optimization

Ответить
@yogeshkanare6312
@yogeshkanare6312 - 03.02.2021 15:26

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

Ответить
@hetalgalani1631
@hetalgalani1631 - 02.02.2021 22:07

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?

Ответить
@ismail8973
@ismail8973 - 15.01.2021 09:46

Nice vedio bro

Ответить
@abhimanyu6534
@abhimanyu6534 - 24.12.2020 14:36

Make more new videos

Ответить
@manaspatil4316
@manaspatil4316 - 24.12.2020 11:32

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

Ответить
@manojborugadda9212
@manojborugadda9212 - 11.12.2020 17:32

thank u so much bro, you are genius 👍👍

Ответить
@anupriyasharma7672
@anupriyasharma7672 - 27.11.2020 01:29

Love videos from this playlist... excellent videos

Ответить
@emmanuelmontjane
@emmanuelmontjane - 25.11.2020 04:32

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

Ответить
@adnanqudsi9604
@adnanqudsi9604 - 11.11.2020 17:14

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

Ответить
@muneebj.4010
@muneebj.4010 - 04.11.2020 13:17

the ComplexNum temp which you created in the addition function. will it delete itself automatically as the function ends? or will I have to manually write a code to deallocate memory in the temp object. I am talking about deleting the whole object and not just using a destructor to delete memory within an object.

Ответить
@srtghfnbfg
@srtghfnbfg - 28.10.2020 15:30

bro why the f is the imaginary part a different data type lol. Please brush up on your maths..

Ответить
@rahulduvedi3341
@rahulduvedi3341 - 17.10.2020 18:56

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

Ответить
@Gandhiboy
@Gandhiboy - 18.09.2020 10:30

Thank you 😊

Ответить
@swasthikmuloor7764
@swasthikmuloor7764 - 05.09.2020 18:04

Bro when I pass argument comp1 and comp2 with same value I get right ans if I pass different value I get wrong ans
Comp1(5,4),comp2(2,3)
I get 4+6i as output

Ответить
@aaminaminur4413
@aaminaminur4413 - 07.08.2020 14:34

The intro music to this education video is out of context and not supposed to be here.

Ответить
@shehzadkhan9582
@shehzadkhan9582 - 28.07.2020 17:20

bro you are teaching nice but you talk too fast therefore I and maybe any other person isn't getting what are you saying so plzz talk keep your speed normal to make us understand

Ответить
@balumail75
@balumail75 - 27.07.2020 17:11

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

Ответить
@prithwirajdey3776
@prithwirajdey3776 - 24.05.2020 10:25

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

Ответить
@arusrivastava3908
@arusrivastava3908 - 21.05.2020 15:39

The program was really good but too chaotic.

Ответить
@sanketsuryawanshi
@sanketsuryawanshi - 02.05.2020 15:12

Best thing i seen in you that you are replying the comments on video which are made before 2 years 👍👍can i get any contact no. Or insta ID for querrirs

Ответить
@ParadoxWorks
@ParadoxWorks - 30.04.2020 19:13

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!

Ответить
@harrypham3941
@harrypham3941 - 11.04.2020 11:26

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

Ответить
@borderlinegod
@borderlinegod - 13.03.2020 19:34

good video

Ответить
@harshith_takkala
@harshith_takkala - 11.03.2020 08:36

awesome bro..
one doubt ... what is the word you are speaking at the end of video..
thank you for explanation
subscribed

Ответить
@ar3568row
@ar3568row - 27.01.2020 15:03

why don't we simply change the variables from private to public instead of making a separate function (getrealpart) ?

Ответить
@mauamadoudrammeh8083
@mauamadoudrammeh8083 - 11.01.2020 09:15

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?

Ответить
@abhayminachi6020
@abhayminachi6020 - 01.12.2019 17:45

Really nice video man...

Keep adding more videos 😀😀😀😀

Ответить
@ankitpaudel
@ankitpaudel - 24.10.2019 21:06

when I tried recreating the adding function as method 'add2number' INSIDE the class add2number(ComplexNumber* comp1,ComplexNumber* comp2); which takes in pointers to comp1 and comp2 and when i try to access the data using *comp1.getRealPart i cant do so and it throws error of "expression must have class type".....and i called the method by passing address of the objects of the class using & operator..
i dont understand whats going on here. Any explanation is greatly appreciated.

Ответить
@RahulPatel-br4zg
@RahulPatel-br4zg - 18.09.2019 21:42

Best tutorial for beginners thank you sir

Ответить
@jas4768
@jas4768 - 05.09.2019 20:54

Really useful. Thank you from London, UK.

Ответить