What is a class?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

C++ and Java Tutors

Class is User defined data type, its contain data members and member function
Comments

The fundamental building block of OO software. A class defines a data type, much like a struct would be in C. In a computer science sense, a type consists of both a set of states and a set of operations which transition between those states.
Comments

C/C++/.Net Trainer

A class is like a design to create objects. Class will have methods and variables. Classes will be created mainly for re-usability, modularity and security. In real world applications you will see class names like Employee, Customer, Order etc., where the functionality related to each type will be enclosed...
read more
A class is like a design to create objects. Class will have methods and variables. Classes will be created mainly for re-usability, modularity and security. In real world applications you will see class names like Employee, Customer, Order etc., where the functionality related to each type will be enclosed in a class. read less
Comments

1.5 years of experience in teaching IT and computer subjects to engineering, diploma and BSc students.

A class combines data representation and methods for manipulating that data into one neat package and is used to specify the form of an object. An object is an instantiation of a class. The data and functions within a class are called members of the class.
Comments

IT Technical Trainer

A class can be considered as a template where it holds the data elements of its type and methods to operate on it. Any instance created from this class will contain the data elements of that template with default initialized values. As mentioned in above responses, you can consider an Employee class...
read more
A class can be considered as a template where it holds the data elements of its type and methods to operate on it. Any instance created from this class will contain the data elements of that template with default initialized values. As mentioned in above responses, you can consider an Employee class as a template which can hold information about employee like id, department, etc. An instance of it would Employee Joe which will be initialized with the information of Joe called as an Object. read less
Comments

Lecturer

Class is the collection of different datatypes and member functions.
Comments

Tutor

Class is collection of data and the functions that operate on data. It is a template for real world object. Class defines attributes of the object and the functions required.
Comments

View 5 more Answers

Related Questions

How to register as teacher?
On the basis of his total experience and Qualification you can do it.
Shrikrishna
Describe about private access specifier?
Private keyword, means that no one can access the class members declared private outside that class. By default class variables and member functions are private.
Prasad
1 1
8
What are the toughest topics in C language?
1. pointer 2. dynamic memory allocation 3. File handling
Lokayya
0 0
5
What is the use of virtual keyword in inheritance?
use of virtual keyword in inheritance-------> Multiple inheritance in C++ is a powerful, but tricky tool, that often leads to problems if not used carefully. This article will teach you how to use virtual...
Shabbir
What is the actual size of INT in the C language, 2 or 4 bytes?
The actual size to int is determined by the compiler as the program runs. But theoretically the size is 2 bytes. You can increase the size by adding keyword long infront of it to make the size 4 bytes. Eg int a; // 2 bytes Long int b; // 4 bytes
Kunal

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Advantages of C++ Language
Advantages of C++ - C++ is a profoundly convenient dialect and is frequently the dialect of decision for multi-gadget, multi-stage application advancement. - C++ is a protest situated programming dialect...

Do You Know Size Of Empty Class and Reason?
Size of empty class is always 1 byte. Reason is, in order to differentiate one object to another object, the size of empty class is always 1 byte. See the below c++ code snippet. Here there are three...

Templates
Templates Advantages of templates: Code reuse Allows container classes (e.g. lists, arrays, etc.) to be simply defined without loss of static type checking or run-time efficiency. Allows definition...

My first C++ program
# include using namespace std; int main() { cout<<"Welcome to C++"; return 0; } Use IDE such as CodeBlocks to run this program. To do this, open CodeBlocks, Goto File->New->Empty File. Copy...

Tress And Its Traversal
Depth First Traversals:(a) Inorder (Left, Root, Right) : 4 2 5 1 3(b) Preorder (Root, Left, Right) : 1 2 4 5 3(c) Postorder (Left, Right, Root) : 4 5 2 3 1 Trees are one of the data structures like...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you