what is class?????????
subrinadhanraj:
10
Answers
Answered by
9
A class can be regarded as a blueprint to create objects. It defines data functions common to all objects of a certsin kind. A class consist of two aspects that is variables and functions.
The keyword 'class' declares the program's name. It includes that we are going to create a new class.
Once a class is defined, we can create any number of objects belonging to that class and share the common state and behaviour. Hence, is also known as a factory that produces similar objects.
Answered by
5
Class in the contact of Java are temples which are use to create objects to define object data types and methods. Core properties include the data types and methods that may be used by the object. All class objects should have the basic class properties.
In object-oriented programming , a class is a template definition of the method s and variable s in a particular kind of object . Thus, an object is a specific instance of a class; it contains real values instead of variables. A class can have subclasses that can inherit all or some of the characteristics of the class.
For example, there might be a class called shape that contains objects which are circles, rectangles, and triangles.
In object-oriented programming , a class is a template definition of the method s and variable s in a particular kind of object . Thus, an object is a specific instance of a class; it contains real values instead of variables. A class can have subclasses that can inherit all or some of the characteristics of the class.
For example, there might be a class called shape that contains objects which are circles, rectangles, and triangles.
Similar questions