short note class ka syntax
Answers
Answered by
0
Answer:
The basic syntax is: class MyClass { // class methods constructor() { ... } ... Then use new MyClass() to create a new object with all the listed methods. The constructor() method is called automatically by new , so we can initialize the object there.
Similar questions