OOP Pillars (Encapsulation)

Primary tabs

Abdelraheem Al-najjar Raheem's picture

No Description Set

Subjects: 

Bookmark to learn: Login to use bookmarks.

Bookmark to learn: Login to use bookmarks.

Add to collection ... add OOP Pillars (Encapsulation) to your collections:

Help using Flashcards ...just like in real life ;)

  1. Look at the card, do you know this one? Click to flip the card and check yourself.
  2. Mark card Right or Wrong, this card will be removed from the deck and your score kept.
  3. At any point you can Shuffle, Reveal cards and more via Deck controls.
  4. Continue to reveal the wrong cards until you have correctly answered the entire deck. Good job!
  5. Via the Actions button you can Shuffle, Unshuffle, Flip all Cards, Reset score, etc.
  6. Come back soon, we'll keep your score.
    “Repetition is the mother of all learning.”
  7. Signed in users can Create, Edit, Import, Export decks and more!.

Bookmark to learn: Login to use bookmarks.

Share via these services ...

Email this deck:

Right: #
Wrong: #
# Right & # Wrong of #

A process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines.

Encapsulation in Java

How can you create a fully encapsulated class in Java?

By making all the data members of the class private. Now we can use setter and getter methods to set and get the data in it.

Which Java class is an example of a fully encapsulated class?

The Java Bean class

By providing only a setter or getter method, you can make the class -?

Read-only or write-only

An advantage of encapsulation is it provides you control over the -?

Data

What is the term for other class will not be able to access the data through the private data members?

Data hiding

The encapsulate class is easy to -?

Test

What are the two types of modifiers in Java?

Access modifiers and non-access modifiers

The access modifiers in java specifies - (scope) of a data member, method, constructor or class.

Accessibility

What are the 4 types of java access modifiers?

Private, default, protected, & public

Subjects: