Add

Showing posts with label census enumerator. Show all posts
Showing posts with label census enumerator. Show all posts

Friday, November 16, 2018

Enumerator and class


Enumerator

•It is used for user defined data type.
•For example:
•Enum weekday {sun, mon, tues, wed, thurs, fri, sat};
•Weekday currentday=wed;
•By default value of enumerator starts from 0
•But we can assign our own values as well.


class

•This is another user defined data type used for sophisticated data.

•How to write
•Class class_name{
•Private_data;
•Public_data;
•}object;