What is Object and Class? What are the differences between
them?

Answer Posted / jack

simple analogy for this quest is u declare int x;
and u ask diff between int and x;


Object is an instance of a class.......
--when an object of a class is created the memory for
that class is created...
--U can access the class members using the . operator in
your program....but u r not allowed to access the private
and protected members, which can be accessed by the member
functions only........

Class is the user defined datatype...which contains data
members and member functions.....

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do pointers exist?

877


What is encapsulation in oops?

759


Write a program to reverse a string using recursive function?

2026


Can main method override?

835


What is abstraction in oop?

852


any one please tell me the purpose of operator overloading

2165


What is class and example?

814


What is a class oop?

756


which feature are not hold visual basic of oop?

1941


What is the real time example of inheritance?

858


write knight tour problem which is present in datastructure

2380


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2206


when to use 'mutable' keyword and when to use 'const cast' in c++

1881


What is inheritance in oop?

799


what are the different types of qualifier in java?

2016