Computer Science, asked by Hatold, 11 months ago

what is class?????????


subrinadhanraj: 10

Answers

Answered by Anonymous
9
<b><marquee behavior ="alternate">ANSWER:</marquee></b>

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.

Hatold: thank you
shubh1729: welcome
Answered by shubh1729
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.

Hatold: thank you
shubh1729: welcome
Similar questions