Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

If i have an abstract Customer class and it has the method "ProcessTime for each subclasses - each will have a diff time. so how do I access the specific subclass processTime?

OpenStudy (tyteen4a03):

By referencing the subclass's instance. class A { public function processTime() { return 1; } } class B extends A { public function processTime() { return 2; } } $b = new B(); $b->processTime();

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!