A class is a basic building block of object oriented programing.
Syntax:
{
}
Regarding access modifier of class:
class access modifier = {public,protected,private}
1. In most cases we mention public or protected to be the access modifier of a class. Very few case we can encounter where we mention private to be access modifier of a class.
Q. What happens if we declare a class private?