java - How to work with overrided methods -


how can override method superclass in java, how constructor also? , how can call method or constructor of superclass?

to override method in java, need define new method in sub class same name , same types of parameters. before defining should write annotation @override. access method in superclass, should write that:

super.methodname(params..); 

to call super class constructor write:

super(params..); 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -