This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have read that constructors are not inherited... although i have referred so many for this i could not get the point right. if constructors are used for declaring and initialising the variables, then will there be any use inheriting the class without constructors.??? please hint me on this...
Iif you wish to explicitly use the supercalss constructor you must make a call to super. in your subclass, if not your subclass will either get a default constructor or you will have to create a non-default construcor.
be a well encapsulated person, don't expose your privates, unless you public void getWife()!