WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE
SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
Answers were Sorted based on User's Feedback
Answer / kunal prakash
object is the instance of the class.
class contains data and member functions.
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / mallikharjuna
object is a real world entity.
class is a blueprint of object
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / hareesh d
Object :is a one which contains both data and member functions
class:which contains group of objects
| Is This Answer Correct ? | 16 Yes | 10 No |
Answer / deepika
object is the real world entity and it is the instance of a
class.
collection of objects is known as class. all the objects
which belongs to the same class share same properties and
common behaviour.
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / amit
class is key word which is provids to create a user defined
datatypes and
object is delegates of class
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pranay agarwal
class is a template that contain data and functions, an
object can use this template any no. of times .
object is instance of class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / amit chauhan
object is a real world entity.
class is collection of similar objects.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dulichand kumawat
class: A class is a collection of variables and functions working with these variables. Variables are defined by var and functions by function.
Object: Object is instance of the class which is used for run
the class like a key(object) of car(class)
| Is This Answer Correct ? | 1 Yes | 0 No |
what is oppes
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
Definition of Object Oriented Programming in single line?
33 Answers Impact Systems, Q3 Technologies, TCS,
What do you mean by variable?
What causes polymorphism?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
what is difference between class template and template class?
How do you achieve runtime polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
why the memory allocated with new cant be freed using free()
can main method be overloaded...??? How..????