Protected Access Modifier in C++ | C++ Tutorials for Beginners #39
Vložit
- čas přidán 27. 08. 2024
- Download the best IDE for C, C# and C++: bit.ly/WholeTo...
►Source Code & Resources: codewithharry....
►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithhar...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Sir ! You are great. Your videos are helpful for me and everyone. I can understand topic more effectively than my college Teachers taught me.
TBH i didn't access this playlist yet i have prioritised other playlists from this channel
Harry Bhai please make a series on stock market basics and algorithms,it'll be a great help
Let
Public ~ strong
Protected ~ stronger
Private ~ strongest
Jo ba nisbat dosray k strong ho ga Derrivation us Mode main ho ge.
Example :
Members of Base class is Protected
And Derivation Mode is Public
So,
Derived class will inherit in "Protected Mode" ,
Because,
Protected is stronger than public. 👍
And always keep in your mind that private members can never inherit in any Mode.
Sir, plz start tutorial on competattive programming.
Those who want this series hit like -
bhai did u start cp after 1 year of seeing this video
did you start after 3 years??????
I just wanted to let you know that even after 3 years of releasing this video people like me are learning from it...thank you Harry you are a blessing to humanity..
Harry sir Abi Mai c programming seekh raha hu apki videos se fir bhi apki Har new video pe bina dekhe like comment or share krta hu... Harry sir aap best teacher Ho.
REALLY HELPFUL CHANNEL ON CZcams.❤️
hey harry, just wrote my code of this lecture by utilising the knowledge that you taught us in the video. Thanks a lot for the session. Here is the code:
code:
#include
using namespace std;
//class base: containing the protected variable a
class base{
protected:
int a;
public:
base(){
couta;
cout
hi sir
sir,
it been long time since u have been uploading videos on c++ and u have taught so many new things .as its lockdown and students are struck at their homes ,so can u please speed up the rate of uploading your videos on c++ .so that we can use this time efficiently for learning a programming language.
harry bhai bahut easy tha......
aapke table ne ise aur easy banaa diya ..... aaa gya samajh
cout
endl lagana na bhule
@@kunalshahare9041 oooo 😯 😲 thankkkkkku thankaau
simple method to remember that table :
just remember that security can go to upper level or remain at the same level but never go to lower level
Such a great video for the concept 🤗
Thank you So Much Harry Bro ❣️ For this Wonderful and easy to understandable explanation
Thankyou for making our lockdown successful.we can learn new technologies and language by watching your video
#dilsethankyou
My whole class watch your videos for coding.
Yes😂😂
Thanku harry bhai for c++ series video.
Good explanation 🎉🎉😊
Awesome Video Bhai
Thank you so much harry bhaiya ❤❤
Bhai You are helping me to pass in my CS course ...... love from Bangladesh bro 💕
Thank you harry bhai so nicely explained
best tutorial on C++ harry bhai❤❤❤
Best explanation 😘
Thanks sir for making this playlist ,This playlist is very helpful for me.
Very helpful tutorials 😍 thanks to you harry bhai 👍🙏
Thanks Harry sir for clearing my concept 🙂.
You are the best harry bhai, love from milkyway galaxy
Very nice and helpful.
guys, it is important to understand that protection is necessary whether it is coding or life!
🥲 mile to koi protection use krwane wali.
@@rahulpandey6672 💀
@@rahulpandey6672tab to acha h na hi mile
Hello Harry Bhai you are a great programmer☺️
Bhai you should be in my college in place of my college teacher because you explain and teach like a professional.than my college teachers
really helpful channel. love the playist❤🔥
Bhaiya ek video on open source contributions also
Very helpful
Incredible sir
Gajab explanation
🔥
You know what I accidentally skipped "and I will see you next time" part of the video and went back to just listen to it.
Are you persuing BTech right now?
@@myselfashutosh yes, CSE!
Yeah right..😅😅 it happened with me earlier too. I always wait for Harry bhai to say it at the end.😅😂
me still waiting for his tutorial on cp
@@ShamishaKanchi women
Very easy explanation :)
Thank you so much harryyy bhaiiiiiii
Love from Chandigarh
Thanks
Nice Table
very nice harry bhai 🥰🥰
Thanks Harry Bhaiya
Really very Very helpful videos. Thank you bhaiya💖💖💖. Take love and respect 🙏
Holy! I finally understand protected
thankyou so much sirrr !!!!
Thanks for the video. Excellent.
Thank you, harry bhai!
thank you sir❤💕
Harry bhai love u dil se😀❤️
Very good explanation
harry bhai ap na bataya ka protected private be ha or inheritance be ho sukta ha phr ap cout
Thank you harry bhai you thought very well😀😀
#include
using namespace std;
class Value{
private:
int a;
protected:
int b;
public:
int c;
// int val(){};
int val(int x, int y, int z) {
couty>>z;
a=x;
b=y;
c=z;
}
int val(int x, int y) {
couty;
a = x;
b = y;
}
int returna() {
return a;
}
int returnb() {
return b;
}
int returnc() {
return c;
}
};
class Calc:protected Value{
int sum;
int product;
public:
void sum1() {
int x,y,z;
val(x,y,z);
sum = returna()+b+c;
printsum();
}
void product1() {
int x,y;
val(x,y);
product = returna() * b;
printproduct();
}
void printsum() {
cout
Hello sir 👋 This video is really very helpful to me
Thank you ❤
Thanks Sir For useful course in C++ . i also access your C course in C course you give Quick quizzes that was really helpful but in C++ you does not give any quick quizzes. kindly give us some important quizzes in C++ course as C course that was very heplfull in Final exams also .
Protected is inspite of being private can be inherited
6:44 private to teeno case mai private hi rhenge kyuki vo inherit nhi hote
thank you harry bro
Thank You !
.
.
.
Sir , My VS Code has issue (cannot find runtime 'node' on path , 'node' installed )
[Open launch.Jason]
I am trying to solve this error but no result is obtained .
Sir plzzz help me . make one video for this problem.
Op bhai op...
That was really helpful !!!
thank you bhai
thank you so much bro
C++ ki is series me kitne videos rhenge bhai.
Great sir
you are the best
Well explained harry bhai, 😍
thanks sir ,you are awesome
nice vedios...
summary of table: protected member in publically derived class from the base class will remain protected
SOURCE CODE::
#include
using namespace std;
/*
For a protected member:
Public Derivation Private Derivation Protected Derivation
1. Private Members: Not Inherited Not Inherited Not Inherited
2. Protected Members: Protected Private Protected
3. Public Members: Public Private Protected
*/
class Base{
protected:
int a;
private:
int b;
};
class Derived : protected Base
{
};
int main(){
Base b;
Derived d;
//cout
Awesomeeeee
Harry bhai pls...make a video on how to install turicreate on window 10 ...pls bhaiya🙏
3:36 matlab protected waala inherit ho skta hai?
Bhai competative programming ke upar videos banao
Thanku sir
Nice harry Bhai
idhar hm friend function se nhi use kr skte private ko?
Aaj smjh aaya protected shi s 🔥🔥
Harry bhai apni age btadijiye
Broo u could have explained about protected more clearly. I mean protected members can be accessed in derived class
Awesome 😎😎 video 📷📸
Please make a playlist CPP prractice
Bhai java tutorial bano please
harry bhai react js aur react native ka tutorial banvona
Sir so when will protected will print
day 15 on #39 thanks bro
Please make a big project in c++
Greatt!!❤️❤️
What's the difference between protected and private
agar hume private member class ke access krne ha to derived class ko base class ki friend bhi to bana sakte ha 🤔🤔 ? is this correct or not?
yaa, i'm also thinking this
Bhai java tutorial kab bano ge
KING
Sir apne sabhi language pai project banaya hai lekin Abhitak apne Java pe koi bhi project nahi banaya so please sir Java pe ek project banaiye
Big fan
hey! sir pls explen short code.🥺
These are "MUST LIKE" videos, so everyone 'should' like
Sir total kitne tutorial videos honge is c++ ke course me
Please reply me