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
Why do pointers exist?
What is encapsulation in oops?
Write a program to reverse a string using recursive function?
Can main method override?
What is abstraction in oop?
any one please tell me the purpose of operator overloading
What is class and example?
What is a class oop?
which feature are not hold visual basic of oop?
What is the real time example of inheritance?
write knight tour problem which is present in datastructure
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(); }
when to use 'mutable' keyword and when to use 'const cast' in c++
What is inheritance in oop?
what are the different types of qualifier in java?