Computer Science, asked by rautyash0324, 1 month ago

short note class ka syntax​

Answers

Answered by taibanoori1998
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