Section 1

Preview this deck

Class

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (7)

Section 1

(7 cards)

Class

Front

Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type. A modifier may or may not be used to declare a class.

Back

Constructor

Front

A constructor is a special method that builds the object when a new object is created.

Back

Modifiers

Front

There are two types of modifiers in Java: access modifiers and non-access modifiers. The access modifiers in Java specifies the accessibility or scope of a field, method, constructor, or class. We can change the access level of fields, constructors, methods, and class by applying the access modifier on it.

Back

Access Modifier

Front

Specifies which classes can access a given class and its fields, constructors and methods

Back

Private vs Public

Front

public means you can access it anywhere while private means you can only access it inside its own class

Back

Package

Front

A package is a collection of related classes and interfaces providing access protection and namespace management. There are user defined packages and in built packages.

Back

Once you've hit this card, go to this website

Front

https://syntaxdb.com/ref/java/class-declare

Back