What Is Class In Java or CSharp?

What Is Class In Java or dotnet
Class in Programming Language


  • Class is nothing but a structure binding the data along with its corresponding and related functions.
  • Class is a user-defined data type in java. 
  • The class will act as the base for encapsulation.
  • Class is similar (but not exactly) to “structure” in a c programming language to create user-defined data types that model real-world entities.
  • A class contain properties and operations
  • A class is a plan for the proposed object.
  • A class is known as a blueprint or template for an object.
  • Defining a class is nothing but modeling a real-world entity. Real-world entity type creation is nothing but classification. That is why the name “class” which is nothing but type.
  • Any java application works like a collection of classes.
  • Class is not an object-oriented feature. But class is the means with which all object-oriented features are programmatically realized. 
  • For example, encapsulation, polymorphism, and inheritance can’t be programmatically achieved without class concept. But it does not mean that class is an object-oriented feature.

Example Syntax of Class

class ATG 
 {
        //static constructor declaration
        //non static constructior declaration
        //static variable declaration
        //non static variable declaration
        //Variable declaration
        //static method declaration
        //non static method declaration
}




Previous Post Next Post