If we assign a superclass object to a variable of a subclass’s data type, we need to do explicit casting.
For example: Object a; Customer b; b = (Customer) a;
I hope I understood question correctly...
Java does not have sizeof operator now my question is How to find out how much memory is used by an object in Java?
Java is a purely Object Oriented programming language or not.......? If Not Then write a program without class & objects.......
We define copy constructor using A(const A & obj)
A(const A & obj
Why reference (&) is needed? Why we are not allowed to use.
A(const A obj)