Professional Documents
Culture Documents
Poly Example
Poly Example
java
package ooconcepts;
//Constructor Overloading
//global variable
int x, y,z;
int sum;
public PolyExample(){
this.x = x;
this.y = y;
this.x = x;
this.y = y;
this.z = z;
}
public void sumValue(){
sum = x + y + z;
pe.sumValue();
pe1.sumValue();
pe2.sumValue();
/*
*/