Friday, July 18, 2008

OOPs with C# - Session 1

The concept of object orientted programming introduces a new concept which is known as class.

A class is a basic building block of object oriented programing.

Syntax:

class A
{

}

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?






No comments: