FAQ

  1. What is wrong with this class declaration?
    private class someClass{
      // class implementation goes here
    }

    There are no private classes. Classes can be public or default. Public is public; default is like being private within its own package.

  2. What is encapsulation?

    Encapsulation is how we contain our variables, code, and methods in a manner that exposes just the parts and functionality we want for the code that uses it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.153.38