*
rvinoth83@gmail.com:[color=blue]
> Hi,
>
> Constructor of a class is only used to Intialize the Instance
> variable of class or it will allocate the member and then Intialize
> the variable?........[/color]
The question is very unclear, seemingly self-contradictory.
There is no conflict between "initialize the instance" and "allocate the
member" (using a liberal interpretation so as to make the latter
meaningful); the latter is generally a part of the former.
Anyway what initialization a constructor needs to do depends solely on
the class' invariant, which is the set of assumptions that you guarantee
will hold for every instance.
[color=blue]
> If constructor is used only to Intialize the Instance variable of
> the class, What is the need of Constructor in Abstract
> class?.............[/color]
An abstract class is not different from other classes in this respect.
What difference did you think there would be?
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?