Objects as Function Parameters in C++(Urdu/Hindi)
HTML-код
- Опубликовано: 6 авг 2021
- In this video, we will learn how Objects can also be passed as parameters to member functions.
Write a class Travel that has the attributes of kilometers and hours. A constructor with no parameter initializes both data members to 0. A member function get() inputs the values and function show() displays the values. It has a member function add() that takes an object of type Travel to add the kilometers and hours of calling object and the parameter.
Step by step explanation.
Easy to follow and understand.
www.itseriestutor.com
/ itseriestutor
#itseries#CPP#OOP
👍sir ais terhan hi videos bnaty rahy
Thank you so much
good luck sir🙌🌚
Great explanation
❤
very nice explanation 👏👏👏👏👏
💥
Thanks ( kuch samjh nahi aya fr)