Computer Science, asked by PragyaTbia, 1 year ago

Explain class concept?

Answers

Answered by kanak2063
0
In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods). In many languages, the class name is used as the name for the class (the template itself), the name for the default constructor of the class (a subroutine that creates objects), and as the type of objects generated by instantiating the class; these distinct concepts are easily conflated.
Answered by adventureisland
0
  • Class is the utmost important concept of object-oriented programming.
  • A class can be defined as a blueprint or a template.
  • Classes are the collection of data items combined with member functions which together constitute a meaningful real-world entity represented by an object.
  • Class tells the programmer about all the attributes and functions an object has and what an object is capable of doing.
  • Classes reflect all the object-oriented properties like encapsulation, data hiding, and inheritance.
Similar questions