siamack sanaie Java
  1. Classes, types, and objects

  2. Objects store data and provide methods for accessing and modifying this data
  3. Class Members
    1. instance variables (also called fields)
    2. Methods: which are three types (constructors, procedures, and functions)
  4. Class Modifiers:
    1. Abstract:abstract classes has some abstract methods. If class that has only abstract methods and no instance variables is actually an interface. Abstarct methods are declared with the abstract keyword and are empty
    2. Final: The final class modifier describes a class that can not have any subclasses
    3. Public: The publicclass modifier describes a class that can be instantiated or extended by anything in the same package or anything that imports the class. All public classes are declared in their own seperate file called (classname).java. There can only be one public class per file.
    4. If a class is not public it is friendly and it can be used and instantiated by all classes in the same package
Hosted by www.Geocities.ws

1