Title Point Class Hierarchy
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=inheritance.point
Platform Name PCEX
Features
Description Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has two data members, x and y that represent the point's integer coordinates in the two-dimensional space. A Point3D has three data members, x, y, and z that represent the point's integer coordinates in the three-dimensional space. Write the class declarations, the constructors, and the toString methods for these two classes.\n\nThe class InheritancePointTester1 tests these classes and their methods.
Keywords inheritance, object
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=inheritance.point
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview