Explain the modifiers public, protected and private.

What will be an ideal response?

The public modifier signifies that an instance variable or method is inherited freely by the derived class. The protected modifier signifies that an instance variable or method is available by name inside its own class definition, as well as by any class derived from it or in the same package. The private modifier signifies that an instance variable or method is not available outside of its class definition.

Computer Science & Information Technology

You might also like to view...

In the Group, Sort, and Total pane, when asking for "with A on top" results in a(n) ________ sort

Fill in the blank(s) with correct word

Computer Science & Information Technology

When you use the OnLine Pictures command on the Ribbon to insert a picture, PowerPoint inserts the image:

A) at the bottom of the slide. B) at the top of the slide. C) in the center of the slide. D) at the left margin of the slide.

Computer Science & Information Technology