IF someone can write this code out for me so i can use it as an example for the rest of my problems and question i have to do I would really appreciate it alot. and no this question is not Homework what so ever I am a visual person i need an example of a program so I can piece together several other questions together to get own answers... Thank you for who ever can help me I can solve the rest visually.
write a superclass encapsulating a circle; this class has one attribute representing the radius of the circle. it has methods returning the perimeter and the area of the circle. This class has a subclass, encapsulating a cylinder. a cylinder has a circle as it's base, and another attribute, its length ; it has two methods, calculating the return its area and volume. You also need to include a client class to test these two classes