Mention the difference between an object and a class ?
Answer Posted / Vishal Jaiswal
["In Scala, a class is a blueprint for creating objects, which are instances of that class. An object is a specific instance of a class. In other words, a class defines the structure common to all its objects while an object represents a single instance with its own state."]
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers