Answer Posted / Ravishankar
In Scala, a class is a blueprint or template for creating objects (also known as instances), while an object is an instance of a class that has its own distinct state and behavior. A class defines the properties and methods that will be common to all instances of that class, but each object created from that class will have its own unique state.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers