What is class declaration in Java?
Answers
Answered by
6
The class declaration component declares the name of the class along with other attributes such as class's superclass and whether the class is public, final or abstract.
MARK as brainaliest ❤️❤️
Answered by
4
Answer:
hello friend
Explanation:
Class Declaration component declares the name of the class along with other attributes such as the class's superclass, and whether the class is public, final or abstract... Class names must be a legal Java identifier and by convention, begin with a capital letter.
How Do You Declare a Class In Java
In general, class declarations can include these components, in order:
- Modifiers such as public, private, and a number of others that will encounter later.
- The class name with initial capitalized by convention.
- The name of the class's parent(superclass), if any, preceded by the keyword extends.
hope it helps you friend
Similar questions