What is a class?
Answers were Sorted based on User's Feedback
Answer / kumar vishal
In general a class is a group of objects. for example
mango,apple, banana, grapes etc. is a group of fruits.
But in oops concept, a class is a collection of member data
and member function.
Is This Answer Correct ? | 22 Yes | 1 No |
Answer / madasamy.k
Collection of data members(Varibles) and methods(functions)
is called class
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / khadeer.k
a class is a collection of objects which contains variables
and functions...
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / anandan
the wrapping up of data and functions into a single unit is
defined as the class
Is This Answer Correct ? | 9 Yes | 5 No |
Answer / ganesh
Class is an user defined datatype where variable and
related code where incorporated
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / preethi
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 classClass is the Collection of Methods and Datafield, in
other
word we can say class is user defined Data Types
; it contains real values instead of variables
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / kiran kumar.b
a class is a logical existence of a data containing data
variables and member functions having relations between
them.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / k.premalatha
class is a generalisation or mould or template of an object.
Is This Answer Correct ? | 2 Yes | 1 No |
Is react oop?
why c++ is called OOPS? waht is inherutance? what is compiler?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
What is a macro? And how is a macro same as a template?
When is it necessary to use member-wise initialization list in C++?
what is the difference between virtual function and destoctor?
Is data hiding and abstraction same?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
c++ program to swap the objects of two different classes
how to swap the variables without using temp and operators
Why do we use oops?
What is object and example?