Computer Science, asked by smehaksingh567, 6 months ago

what is class in computer ?​

Answers

Answered by Lazarus
1

Answer:

Hello fellow Brainliac! Here's your answer:

According to object- oriented programming: A class is a blueprint of the set of objects that has attributes and behaviour. The construct to OOP(Object-oriented programming) that features abstraction( hiding essential features without any background details) and encapsulation is called class.

A class may begin with a function, a constructor or with a default function void( which has no return type) with modifier static main (), which has same name as that of program's initial name and helps to create the object inside the class of Java program.

A class may have an abstract class, subclass, superclass and derived class( child class inheriting from parent or subclass) depending upon the theory of keywords or access specifiers like public,private and protected in the concept of Inheritance.

Explanation: In Python, a class is a code template by creating objects. Classes are actually created by using the keyword "class". Objects have member variables and behaviour associated with it.

I know it's a bit long but I hope you got it.

Similar questions