|
Computer Science (CSCI)
Department |
|||
|
|||
Classes and Objects
are fundamental concepts of Object-Oriented Programming (OOP)
(Example code and figures from Computing Concepts with Java Essentials,
3rd edition, by Cay Horstmann.
Visit www.wiley.com/college/horstmann
for information on the current edition of this excellent text.)
public static final MY_CONSTANT = initialization expression;
new Rectangle(5, 10, 20, 30) |
|
public class Greeter |
public class Rectangle |
public class Greeter
{ ...
private String name;
}
|
public String sayHello() |
public class GreeterTest |
public class Greeter |
new Greeter("Dave")
|
|
Exercise - create and play with the Greeter project
|