YouTube Channel
- [ Ссылка ]
Hi
I am Navalchand Rajupt . Welcome to our YouTube channel CodeWithNaval.
➤𝗧𝗢𝗣𝗜𝗖𝗦 𝗖𝗢𝗩𝗘𝗥𝗘𝗗
Encapsulation
Def:- Encapsulation is binding data, wrapping data and group of property-behavior in single unit OR binding code and data in single unit is called Encapsulation.
- Encapsulation is use for transfer data one layer to another layer.
To achieve encapsulation in Java −
Declare the variables of a class as private.
Provide public setter and getter methods to modify and view the variables values.
Benefits of Encapsulation --
The fields of a class can be made read-only or write-only.
A class can have total control over what is stored in its fields.
______________________________________________
👉𝐅𝗢𝗟𝗟𝗢𝗪 𝗠𝗘 𝗢𝗡 𝗜𝗡𝗦𝗧𝗔𝗚𝗥𝗔𝗠:
[ Ссылка ]
______________________________________________________
➤𝐉𝐚𝐯𝐚 𝐅𝐫𝐞𝐞 𝐂𝐨𝐮𝐫𝐬𝐞 𝐀𝐥𝐥 𝐕𝐢𝐝𝐞𝐨𝐬
1. 𝑾𝒉𝒂𝒕 𝒘𝒆 𝒍𝒆𝒂𝒓𝒏 𝒊𝒏 𝒕𝒉𝒊𝒔 𝑱𝒂𝒗𝒂 𝑪𝒐𝒖𝒓𝒔𝒆. :-
___________
➤𝐇𝐚𝐬𝐡𝐭𝐚𝐠
#codewithnaval #java #javafreecourse #naval #programmingcourse #javaplaylist #javainstall
#javabycodewithnaval #javabycodewithnavalpart #javatutorial #corejavatutorial
______________________________________________________
____________________
➤𝗖𝗛𝗔𝗡𝗡𝗘𝗟 𝗧𝗔𝗚𝗦
►codewithnaval
►codebynaval
►codder
►naval
____________________
➤𝗔𝗕𝗢𝗨𝗧
Please Subscribe & Press The Bell Icon To Get Updates On Upcoming Videos. Here You Will Learn Programming Language, Interview Preparation, Challenging Task and many more
____________________
➤𝐂𝐨𝐧𝐭𝐚𝐜𝐭 𝐔𝐬-
navalchandrajput85@gmail.com
➤𝗧𝗵𝗮𝗻𝗸𝘀 𝗙𝗼𝗿 𝗪𝗮𝘁𝗰𝗵𝗶𝗻𝗴😊
Ещё видео!