WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE
SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

Answer Posted / amit

class:
is keyword which is used to define the user defined
datatypes to achive the incasulation,
object:
object is instanse of the class which is used for run
(invocks) the class like a key(object) of car(class)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Templates mean

1581


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


What is abstraction in oop?

625


What are constructors in oop?

583


What is abstract class in oop?

526






What is the difference between a mixin and inheritance?

513


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1776


Why do we use polymorphism?

569


what type of questions

1688


What is polymorphism what are the different types of polymorphism?

553


What is abstraction in oops with example?

765


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2094


What is encapsulation in oop?

599


Who invented oop?

644


What is difference between multiple inheritance and multilevel inheritance?

593