Social Sciences, asked by Rafel6362, 1 year ago

What are the three parts of a simple empty class explain with example?

Answers

Answered by dsnehajain
1
A simple empty class of java follows inheritance, as it automatically inherits object class, therefore can perform the functionality defined in object class.It automatically creates a default constructor inside the class with empty definition.Follows polymorphism, as can be used in any form by the extended class
Similar questions