adspace
Answer Posted / Rahul Dev
"The main components of a class in Java are:n- Class Name: The name given to the class.n- Access Modifiers: Determines the accessibility of the class, its variables, and methods.n- Variables (instance or class level)n- Methodsn- Constructorsn- Inheritance and Polymorphism concepts can also be part of a class."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers