How To Implement Encapsulation In Java? | Java Interview Question | #shorts #kiransir

preview_player
Показать описание


Watch this video until the end for essential information to aid you. If you have any inquiries, don't hesitate to drop a comment; we'll be delighted to offer assistance.

🆓𝐋𝐞𝐚𝐫𝐧 𝐰𝐢𝐭𝐡 𝐮𝐬 𝐨𝐧 𝐓𝐡𝐞𝐊𝐢𝐫𝐚𝐧𝐀𝐜𝐚𝐝𝐞𝐦𝐲 𝐚𝐩𝐩 - 𝐚𝐜𝐜𝐞𝐬𝐬 𝐨𝐮𝐫 𝐞𝐝𝐮𝐜𝐚𝐭𝐢𝐨𝐧𝐚𝐥 𝐯𝐢𝐝𝐞𝐨𝐬 𝐚𝐧𝐝 𝐣𝐨𝐢𝐧 𝐨𝐮𝐫 𝐜𝐨𝐦𝐦𝐮𝐧𝐢𝐭𝐲!

🔰𝐉𝐨𝐢𝐧 𝐨𝐮𝐫 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬 𝐚𝐧𝐝 𝐮𝐧𝐥𝐨𝐜𝐤 𝐭𝐡𝐞 𝐦𝐚𝐠𝐢𝐜 𝐨𝐟 𝐜𝐨𝐝𝐢𝐧𝐠! 🚀

📚About the Courses

📢Who should take this course?
✅Anyone who is passionate about full-stack web development and has a bachelor's degree
✅Software development professionals seeking to enhance their careers
✅IT individuals with a bachelor's degree seeking to switch to full-stack development
✅Project managers and product managers are aiming to upgrade their skills
✅Anyone interested in starting a full-stack developer portfolio

Watch More Videos:

#thekiranacademy #javabykiran #loopsinjava #while #dowhile #forloops

______________________________________________________________________________
______________________________________________________________________________

𝐎𝐧𝐥𝐢𝐧𝐞 - 𝐎𝐟𝐟𝐥𝐢𝐧𝐞 𝐓𝐫𝐚𝐢𝐧𝐢𝐧𝐠 & 𝐂𝐞𝐫𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:
📱𝗖𝗼𝗻𝘁𝗮𝗰𝘁 𝗨𝘀:- 9075 777 123
-----------------------------------------------------------

👉About The Kiran Academy
We are an interactive and 𝗹𝗶𝘃𝗲 𝗲-𝗹𝗲𝗮𝗿𝗻𝗶𝗻𝗴 platform as well as an 𝗼𝗳𝗳𝗹𝗶𝗻𝗲 platform.

🔺𝗦𝗨𝗕𝗦𝗖𝗥𝗜𝗕𝗘 to this channel, and press the Bell🔔Icon to get another informative video

📢📢𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝘄𝗶𝘁𝗵 𝐮𝐬

𝙏𝙝𝙖𝙣𝙠 𝙔𝙤𝙪 😇 𝙁𝙤𝙧 𝙒𝙖𝙩𝙘𝙝𝙞𝙣𝙜...

#kiransir #javabykiran #jobs #freshers #placements #salary #javainterviewQuestionsanswers #placementQuestions #besttraining #java #testing #Freshers #onlineclasses #offlineclasses #hybridcalsses #thekiranacademy
Рекомендации по теме
Комментарии
Автор

📌Encapsulation can be implemented using "getters()" and "setters()" .
📌And by declaring variables as "Private".

ShaziyaBanu-d
Автор

She is very calm and confident, no fear in her eyes. great.

prakashg
Автор

I think it's done by private variable and by getter and setter method in a class.

kushalrajawat
Автор

Just declare the data members or fields as private and use getter and setter methods to set and get values of the object, and voila encapsulation done

rishavranjan
Автор

For implementing encapsulation we need to follw data hiding and abstraction 8n our class with declaring each variable private and only be accessed by getter and setter

PaRsHuraM-
Автор

With for for loops and if else wt we restrict 🤔?

Dileepkumar-ywyn
Автор

Binding multiple entities in to a single unit

javedakhtar-le
Автор

What? Using if else? As far as I know we achieve it by making data members private and using getters and setters

apoorvsingh
Автор

using access modifiers we can did it....

arinjeetbairagi
Автор

You will need to use access modifiers and getter setter methods. Loops and conditional statements are not intended for encapsulation.

harpreetvarma
Автор

We can provide encapsulation by private modifier??

siddheshpatwa
Автор

If you answer like this, god can help

eprabhat
Автор

Is it not creating setters and getters for private variables along with if conditions.... 🤔

gokulkrishna
Автор

Encapsulation using for loop and if else ? And he said correct. Did I miss something ?

ajn