Abstract Class Example

Descrição

Example of Java abstract class
joannazhang13
Notas por joannazhang13, atualizado more than 1 year ago
joannazhang13
Criado por joannazhang13 mais de 9 anos atrás
18
0

Resumo de Recurso

Página 1

public abstract class Shape implements Comparable{ private String name; //constructor public Shape (String n) { name= n; } //accessor public String getName() { return name; } //methods public abstract double area(); public abstract double perimeter(); public abstract int compareTo(Shape s);}

Semelhante

Java Week 5 Object Oriented Programming
Troy Bowlin
Abstract Class Quiz
joannazhang13
Subclass Example
joannazhang13
What does inheritance do?
joannazhang13
Superclass Example 1
joannazhang13
Let's see what you know
joannazhang13
Superclass Example 2
joannazhang13
Java Practice 1
Ummm No
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict
Java Core. Basics
Gadget