Type Here to Get Search Results !

Java में data hiding क्या होता है ?

0

Java में data hiding क्या होता है ?

हमारा internal data directly बाहर नही जाना चाहिए ,बाहर का लोग यह data को directly नही देख सकते हैं .
private modifier का use करके हम data hiding कर सकते हैं .

Example-
class BankAccount{
private double balance;
}

इसे access करना चाह्ता है उसे proper username and password देके access कर सकता है .
Data Hiding फायदा यह है की इसके बजहसे security high हो जाता है .

Post a Comment

0 Comments

Recent-post