Take just this simple method from the graphics class: fillOval()....Why is it abstract? Or better yet, where does it become concrete? I know I've never had to create my own implementation of that method.
server_crash
64
Postaholic
Recommended Answers
Jump to PostGraphics is an abstract class, it's designed specifically for subclassing.
Subclasses of Graphics will provide the actual implementation of the method, and whereever you see a Graphics instance returned from a method what you're actually getting is an instance of a Graphics subclass.
Jump to PostNo, paint() gets passed an instance of a subclass of Graphics as its argument.
This is created internally by the JVM for the actual client platform (and is most likely a big chunk of JNI code linking directly into the operating system screen painting routines).If you notice examples, …
All 7 Replies
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.