What is Class in C# ?

In Opps/C# everything written in a class, unlike procedural language C.

So a class is a template, block, unit or blueprint that contains the data member (variable/properties) and its member functions. 

A class must be defined by a keyword "class".

public class MyClass
{
    int x=10;  // Data member;
 
    public void MyFunction(); // Member Function;
 
}


What is Object in C# ?

Comments

  1. Thank you for giving this useful information in this article. It's a fantastic article. I'll be waiting for your next update. I also have some useful information about the Best Custom Software Development Company in India, which I believe will be of great use to you.

    ReplyDelete
  2. Hire a developer with excellent coding standards including the author’s name, the date, the file was created, the date it was modified, how many times it had been changed, and the reason for the code.

    Hire a Developer

    ReplyDelete

Post a Comment

Popular posts from this blog

What is unqork?

What is single page Application in web applications

What is SOLID Principle ?