Welcome To CompTech.. 🖐🖐
I'm Pratham Rathod.
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
▶ Query That is Solved in This Video :-
Input one number in a class and input another number in another class. Find summation between these numbers using a friend function.
▶ BlogSpot (Source Code) Link :-
🔵 [ Ссылка ]
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⏩⏩ PlayList ⏪⏪
▶ Playlist Link :-
🔵 [ Ссылка ]
▶ Playlist :-
In This Video Series We Are Going To Learn Pointers Programs In C++ Language.
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⏩⏩ Description Of Program ⏪⏪
🔹 When we work with more than one class then we have to declare the class name first,so that, we will not face any type of error.
🔹 So We hace to declare our second class, that name is "xyz".
🔹 And then, we will define the body of our class "abc".
🔹 In class "abc", first we will declare the one integer variable in private.
🔹 And then, in public we will declare member function getdata() to assign the value to our variable "n1".
🔹 Then, declare friend function with two class name.
🔹 We will defien our next class "xyz" as above class "abc" same, but the variable name will change to "n1" to "n2".
🔹 Then, we will define the body of friend function "summation()" and pass the two class name and object name.
🔹 To access the variable of class "abc" we have to use object "a".
🔹 To access the variable of class "xyz" we have to use object "x".
🔹 Then we have to declare one "sum" integer variable to store the result of summation.
🔹 After calculation of sum, we have to print the result.
🔹 In main() function, First we have to declare two objects of our two different classes.
🔹 With the use of that objects we will call our member function "getdata()" to assign the value to our private variable.
🔹 And at the end, We will call our friend function "summation()" and pass the two object names.
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⏩⏩ More C++ Videos from Playlist ⏪⏪
▶ #7 | C++ | Calculate simple interest using friend function and class :-
🔵 [ Ссылка ]
▶ #6 | C++ | Write a Program to input three numbers in member function and display the maximum number in friend function :-
🔵 [ Ссылка ]
▶ #5 | C++ | Write a Program to input price of two products in a member function and display total bill using friend function. :-
🔵 [ Ссылка ]
▶ #4 | C++ | Write a Program input item name, lot number, Quantity and price for a class "Item" and display the details. (using Array of Objects) :-
🔵 [ Ссылка ]
▶ #3 | C++ | Write a Program to take two numbers from the user and calculate the Addition, Substraction, Multiplication and Division.
🔵 [ Ссылка ]
▶ #2 | C++ | Find the area of a circle :-
🔵 [ Ссылка ]
▶ #1 | C++ | calculate Simple Interest Using C++ :-
🔵 [ Ссылка ]
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⏩⏩ More Play list that you Should Prefer ⏪⏪
▶ Adobe Photoshop Tutorials Playlist :-
🔵 [ Ссылка ]
▶ Pointer's In C Language Playlist :-
🔵 [ Ссылка ]
▶ C++ Practical Tutorials Playlist :-
🔵 [ Ссылка ]
▶ Tally Playlist :-
🔵 [ Ссылка ]
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⏩⏩ Contact Links ⏪⏪
▶ YouTube Channel :-
🔵 [ Ссылка ]
▶ Instagram :-
🔵 [ Ссылка ]
▶ Twitter :-
🔵 [ Ссылка ]_
▶ LinkdIn :-
🔵 [ Ссылка ]
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
⚜⚜Thank Your For Visiting ⚜⚜
▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫▫
Tags:-
#charusat #cmpica #instagram #comptech #logo #youtube #youtuber #youtubeseries #subforsub #smallyoutubersunite #learn #logodesigner #logodesign #brand #brandambassador #localbrand #brandingdesign #brandmark #branding#code #coder #visual #visualsoflife #artofvisuals #visualstudiocode #visualstudio #computerscience #developer #programming #programminglanguage #programminglife #adobe #photoshop #photoshopexpress #adobepremiere #adobestudents #adobephotoshop #graphicdesign #font #english #cpp
#programmings
Ещё видео!