What is the encapsulation with example?

Encapsulation in Java is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines . … The Java Bean class is the example of a fully encapsulated class.

Sizin İçin Seçtik  Solana Coin ne kadar üretildi?

Leave a Reply

Your email address will not be published. Required fields are marked *