class declaration code example
Example 1: c++ public class declaration
class class_name {
access_specifier_1:
member1;
access_specifier_2:
member2;
...
} object_names;
Example 2: class declaration in javascript
class NameOfClass {
//class declaration first letter should be capital it's a convention
obj="text";
obj2="some other text";
}
//always call class with "new" key word
console.log(new NameOfClass);