Ans:
syntax:
class classname{
//tour own code
}
- java class is a specification of how to construct something and also called template.
- Java classes contain multiple fields , variables and methods.
- The structure of a class and its subclasses is called the class hierarchy.
syntax:
class classname{
//tour own code
}
No comments:
Post a Comment