Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
@richcohen59367 жыл бұрын
A class can be private. Why? Because we can take as many inner classes and they can have private modifier. An outer class can’t be private or protected..
@mohamedrawoof50934 жыл бұрын
A class can be a private and it’s an just access modifier. The private class for Singleton object is make sense but not for other normal classes. Mentioning private modifier for Singleton object is to protect the class not to instanciate.
@vv72054 жыл бұрын
sir i am Prepareing Eect so Object type Question kavali
@probot1432 жыл бұрын
What is not inherited from parent class ?
@vasudevkodali85664 жыл бұрын
1.If default is allowed, why protected is not allowed.. In fact, protected is more visible than defalut 2.Ok.. Grand parent can't be protected, but why children can't be protected..?
@MrPraveenBasavaraj7 жыл бұрын
A class can be private in case of inner classes.
@divyeshkumarbalar77325 жыл бұрын
yes, it can be inner class
@user-tz7xc4fe3u6 жыл бұрын
nice explanation pleace continue thanks sir
@dnyaneshwarsartape27455 жыл бұрын
It is all about outer class.
@ShivKumar-yv9ti6 жыл бұрын
default also not visible out side the world but we can make default class
@Dawnsunflower1564 жыл бұрын
beta kuch cheezon ko bs package level tk rkhne k liye hi default ka prayog kiya jata hai...private,protected agr kr b denge to ghum fir k woi hoga class bahr nhi ja paegi,,to jb default ye functionality de rha h to ambiguous ku bnana system ko,,isiliye ise allow hi nhi kiya gaya
@hhcdghjjgsdrt235 Жыл бұрын
@@Dawnsunflower156 beta ?
@Dawnsunflower156 Жыл бұрын
@@hhcdghjjgsdrt235 I am a teacher😅😅
@hhcdghjjgsdrt235 Жыл бұрын
@@Dawnsunflower156 sorry mam
@empty31614 жыл бұрын
sir i am from uttarakhand. you are explaning very good.
@shaheenshaikh67016 жыл бұрын
protected means in same package and derived clsses can access so how can we say that in same package it will be a parent child relation only?
@gauravgupta94774 жыл бұрын
Correct Correct....It can be accessed from a non-child class as well inside the same package. I was searching if someone else has raised this doubt or not.
@afshakhan45896 жыл бұрын
loved that way u said "paper" 😂😊
@armanchaudhari47675 жыл бұрын
😂😂😂
@shankar13734 жыл бұрын
😂😂😂
@krishnashauzshenikala92405 жыл бұрын
Very easy explanation sir
@somnathghosh12117 жыл бұрын
finally i understood...thanks sir
@shashanknaag49104 жыл бұрын
Very Informational
@pavanbirajdar23297 жыл бұрын
very nice explanation
@vinodkale70457 жыл бұрын
Very nice expliantion
@srirammandadapu67936 жыл бұрын
but by default class is private in oops for ensuring the concept of data hiding
@harikrishnahkb6 жыл бұрын
It is wrong In Java default is not private, In Java default is "package level access"
@vanipattar39313 жыл бұрын
Sir only you are giving examples to understand but technically not explained.
@nagarajuuppalapati14217 жыл бұрын
Good Explanation...
@miteshjain566 жыл бұрын
god bless u sir
@shivamkamdi68223 жыл бұрын
Thank you sir .!!!
@samarthgupta29852 жыл бұрын
Thank u
@AKHILDS-j3v6 жыл бұрын
thanks sir..........................tsmuch...
@namankapoor16 жыл бұрын
Your explanation for protected is wrong.
@srikanthpeddina1926 жыл бұрын
y?, whats wrong tl?
@keleleberhie65255 жыл бұрын
@@srikanthpeddina192 protected members can be also accessed by any classes within the same package!!
@gauravgupta94774 жыл бұрын
@@keleleberhie6525 Correct Correct....but still i didn't understand why can't we make class protected.
@keleleberhie65254 жыл бұрын
@@gauravgupta9477 Why do you need to defined a class as protected? I can't see the need for that. In my understanding, I can classify oops access modifiers into two categories 1) package level(public, default) 2) class level(private, default, protected, public) But let me give you a way to answer it by asking you. #If you need your class to be protected what would be the usage public access modifier?!
@ubaidansari34095 жыл бұрын
thanks
@deepthipapa9147 жыл бұрын
what is he talking... is he teaching english or java?