Read the following Java program and draw the associated class diagram including methods and attributes.
public interface InterfaceA {
void method1();
}
public class ClassA implements InterfaceA {
public ClassA() {
//contents of ClassA()
}
public void method1() {
//contents of method1
}
private char c;
private int x;
public int y;
}
public class ClassB implements InterfaceA {
public void method1() {
//contents of method1
}
private ClassC a;
}
public class ClassC {
private int myMethod() {
// contents of myMethod
}
public void cMethod() {
//contents of cMethod
}
public class ClassD extends ClassB {
//contents of ClassD
Releated to computer science?
it's pretty straightforward so.......... LEARN YOUR OOP!!!!
sorry, but OOP is pretty darn important. we may answer your question if rephrase it and ask a specific question rather than having us.... oh i dont know **do your homework**
rephrase ur question and ask more specific questions ---- show us you're trying
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment