write is class definition? write its syntax and example
Answers
Answered by
10
Answer:
class is used in object-oriented programming to describe one or more objects. It serves as a template for creating, or instantiating, specific objects within a program. ... While the syntax of a class definition varies between programming languages, classes serve the same purpose in each language.
Explanation:
follow me
Similar questions