what is encapsulation in java | Encapsulation in Java | Detail | Hindi |

Pubblicato il: 01 gennaio 1970
sul canale di: Know Java
29
1

Encapsulation in Java is a powerful mechanism for combining the data members and methods of a class together and secure field accessible by only the members of the same class.
By encapsulating a class's variables, other classes cannot access them, and only the methods of the class can access them.

Syntax:
Access_Modifier class Class_Name {

private Data_Members;
private Data_Methods;
}

Need Encapsulation
Better Control
Getter and Setter
Security
Flexibility

Data hiding is a procedure done to avoid access to the data members and data methods and their logical implementation. Data hiding can be done by using the access modifiers. We have four access modifiers
Default
Public
Private
Protected

For more updates join our telegram group:-https://t.me/knowjavaprograming


Oops Playlist link:-
   • Playlist  

encapsulation in java
java encapsulation
encapsulation interview questions in java
encapsulation program in java
encapsulation in java with example

#JavaOOP
#JavaObjectOrientedProgramming
#JavaInheritance
#JavaPolymorphism
#JavaEncapsulation
#JavaAbstraction
#JavaClassesAndObjects
#JavaObjectCreation
#JavaConstructor
#JavaInterface


In questa pagina del sito puoi guardare il video online what is encapsulation in java | Encapsulation in Java | Detail | Hindi | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Know Java 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 29 volte e gli è piaciuto 1 spettatori. Buona visione!