Friend Class in C++ Example 2 (Composition) | C++ Tutorial | Mr. Kishore

  Рет қаралды 48,800

Naresh i Technologies

Naresh i Technologies

Күн бұрын

C ++ Tutorial Videos | Mr. Kishore
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
💡 Also Watch
C Language Tutorials: goo.gl/qDhJ2r
Core Java FAQ's: goo.gl/qGh5mA
Core Java Tutorials: goo.gl/NbaEge
Java Programming Tutorials by Mr.Hari krishna:
goo.gl/HThq6H
Advanced Java Programming Tutorials by Mr.Nataraj:
goo.gl/1U2Qgy
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training: nareshit.in/cp...
For Online Training: nareshit.com/c...
#JavaCollectionsFramework #Tutorials #Videos #corejava #Quiz #Clanguage
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.co...
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3

Пікірлер: 44
@newmanokereafor2368
@newmanokereafor2368 7 жыл бұрын
Sir your videos are excellent. Whenever I need help on any programming topic online, I search your videos first before any other one. The uniqueness of the lessons is the manner you communicate. You understand the problems fresh programming learners face hence you teach in details. You are the best so far. Bravo!!!
@sakshambhardwaj96
@sakshambhardwaj96 6 жыл бұрын
You are the best sir!!! Huge respect.
@gowthamivaddi5649
@gowthamivaddi5649 6 жыл бұрын
Nice explaination sir thank you sir
@balasubramanianthirupathi9038
@balasubramanianthirupathi9038 7 жыл бұрын
Thanks a lot sir.. Well explained..
@roshnipandey000
@roshnipandey000 3 жыл бұрын
sir function overloading pe bhi ak video banao na
@rua0ra1
@rua0ra1 4 жыл бұрын
I think the contained and container classes are other way around. class book is a container as it has author object and author is the contained
@zippygiggles7520
@zippygiggles7520 4 жыл бұрын
you can try this one for c++ kzbin.info/door/vsxQjCSW4AOBLuRjhQjJ9A
@imaank4713
@imaank4713 5 жыл бұрын
Excellent video
@skbtelugutalks
@skbtelugutalks 4 жыл бұрын
Class author By default it's private Friend key word some rules we r saying in last class Friend key word must be declared in public But we r not mention in public by default it's take private Any problem at execution time sir
@259_parthpatidar9
@259_parthpatidar9 4 жыл бұрын
ha
@shadmaanhasan2502
@shadmaanhasan2502 7 жыл бұрын
Sir thank you so much
@rashidakhatun7437
@rashidakhatun7437 6 жыл бұрын
Thanks
@uddhavdawale9442
@uddhavdawale9442 4 жыл бұрын
yours video are really helpful to us, but lot's advertise is going to disturb us.
@wings7494
@wings7494 3 жыл бұрын
Download it
@seraj_valley
@seraj_valley 6 жыл бұрын
Error ,but public data member of author are accessible
@kundanjha2231
@kundanjha2231 4 жыл бұрын
Good ba
@ritikadhangar2979
@ritikadhangar2979 4 жыл бұрын
But here we add extra data members in class book so ..it is extencebility...??plzz reply sir
@sheetal_s5153
@sheetal_s5153 4 жыл бұрын
Same doubt I have if you know please tell me
@pallamadhu8962
@pallamadhu8962 4 жыл бұрын
Same doubt
@sridharsingaravelu4467
@sridharsingaravelu4467 5 жыл бұрын
Best❤️
@madhukumarv8564
@madhukumarv8564 3 жыл бұрын
sir, here in composition there is no concept of extensibility but we are writing more number of lines of code in contained function....can u explain theseee??
@programmingworld8946
@programmingworld8946 4 жыл бұрын
Sir this is completely like inheritance
@bestsoundssystems3312
@bestsoundssystems3312 4 жыл бұрын
Sir in previous video u said friend class has not it's own data then how u declare variable in friend class
@wings7494
@wings7494 3 жыл бұрын
It is object
@imsiddu
@imsiddu 4 жыл бұрын
i think we cannot directly access as a.aname as it is private...
@kiranbs5057
@kiranbs5057 4 жыл бұрын
Even i feel the same . I think 'a' object should be declared in public specifier .
@mohi3d
@mohi3d 3 жыл бұрын
Hello Sir, Here instead of getting the aname from book class , i have tried to get it from the author class, then i have print the value from book class using the author class object, but its showing some garbage values. Can you explain why?
@tuliprubina9956
@tuliprubina9956 5 жыл бұрын
sir ya program run too horah h mager is ka out put shai nhui raha koi logical error h is ma
@bhargavsaichitta7355
@bhargavsaichitta7355 7 жыл бұрын
sir,you explained the concept clearly.but,in turbo c++ it is showing error like b.putdata();and b.getdata(); are not accessible.... please reply me the answer
@PainDive1
@PainDive1 7 жыл бұрын
#include #include #include using namespace std; class author { // container class char aname[20]; // author class member friend class book; }; class book { // contained class char bname[20]; float price; author a; // composition is : defining one class object // within another class public: void getdata() // To store data { cout > a.aname; cout > bname; cout > price; } void putdata() // To print data { cout
@mahadifamgate2686
@mahadifamgate2686 4 жыл бұрын
@@PainDive1 in main func u keep 2 getdata() ... all is fine.
@ronakpanchal6904
@ronakpanchal6904 Жыл бұрын
Yess Bhai
@DewanandSahu01
@DewanandSahu01 7 жыл бұрын
friend class book shd be public: isnt it
@prabhatlalkarn1880
@prabhatlalkarn1880 6 жыл бұрын
recall the concept of friend function where friend function can be defined in either public area as well as private area
@amruthamrinaliniiyer7016
@amruthamrinaliniiyer7016 5 жыл бұрын
no because a friend itself doesn't have the concept of private, public or protected thus the function "friend". It does not natter.
@avr96
@avr96 7 жыл бұрын
sir please organise your all c++ video in a proper manner we get difficulty in watching video
@ALIRAZA-gi3lp
@ALIRAZA-gi3lp 7 жыл бұрын
absolutely
@PainDive1
@PainDive1 7 жыл бұрын
lol, figure it out yourself. We should be paying him money but instead are having private lessons for free!
@259_parthpatidar9
@259_parthpatidar9 4 жыл бұрын
@@PainDive1 this is youtube man🤦‍♂️
@ravisinghrawat5644
@ravisinghrawat5644 4 жыл бұрын
Thankyou
Static Data Members Example 1 | C++ Tutorial | Mr. Kishore
12:16
Naresh i Technologies
Рет қаралды 91 М.
Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore
17:38
Naresh i Technologies
Рет қаралды 168 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Friend Class in C++ Example 1 | C++ Tutorial | Mr. Kishore
15:05
Naresh i Technologies
Рет қаралды 100 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science Lessons
Рет қаралды 999 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 10 МЛН
How to Stop Procrastinating and Finally Take Action
16:31
Ali Abdaal
Рет қаралды 95 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 347 М.
Templates in C++
17:58
The Cherno
Рет қаралды 613 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 583 М.
Constructor Introduction, Default Constructor in C++ | C ++ Tutorial | Mr. Kishore
19:37