• 0

[Java] Couple Of Questions


Question

Hello,

I have a couple of questions: (Java related)

1. What is an interface? What is an abstract class? What are their differences and when is it better to use one or the other?

2. What is the Static attribute? Define it when it is used on a Method. When is it convenient to use the Static attribute?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Obviously assignment questions and you're looking to do a nice copy-paste job. If you can't answer these questions I wonder what you've been doing all semester in your Java class.

As for Googling the answers:

interface : http://en.wikipedia.org/wiki/Interface_(Java)

abstract class & abstract classes vs interfaces : http://java.sun.com/docs/books/tutorial/ja...I/abstract.html

static attributes and methods : http://java.sun.com/docs/books/tutorial/ja.../classvars.html

(Y)

Link to comment
Share on other sites

  • 0

If you tried a bit harder you could have easily disguised the fact that you copypasta'd your homework. :rolleyes:

I hate to say it, but Google is your friend! As a programmer you need to be skilled in looking things up yourself. When you get onto harder stuff you will have to.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.