When I was at primary school, we recognised "common gender" which appears to have gone out of fashion, so "child" would be common gender, whereas boy and girl were masculine and feminine. The "common gender" pronoun was "he". On this side of the pond, many people use "they" as a common gender pronoun nowadays.Randy Scarberry wrote:(We really need a neuter pronoun in the English language.)
Dawn Charangat wrote:Interface can get you the same luxury, but in a more elegant and risk free way.
sksumit kumar wrote:I said since interface is not a part of the inheritance tree structure, the object created would be less bulky.
sksumit kumar wrote:
sksumit kumar wrote:I said since interface is not a part of the inheritance tree structure, the object created would be less bulky.
Sure, you're inheriting unimplemented behavior, but that doesn't mean it's not inheritance.
jose chiramal wrote:
I had this same question shot to me once and when I answered "yes it extends" he gave a surprised look. I then replied that it extends only the declaration part of the method.
code not correct
Use this.
Also i am still waiting for my question regarding "use of interface helps code execute faster".
jose chiramal wrote:I had this same question shot to me once and when I answered "yes it extends" he gave a surprised look. I then replied that it extends only the declaration part of the method.
jose chiramal wrote:I have a class Car(it has methods enginespecs and color), and there are two sublcasses to it, BMW and Toyota
In this scenario how do I know whether to use an interface or class hierarchy.
jose chiramal wrote:Also I read this point "If you need to change your design frequently,
you should prefer using interface to abstract."
In the code ranch faq i read this : "use an interface if you're sure the API is stable for the long run"
Aren't both these statments contradictory ?