jump to navigation

interface August 8, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

A java interface looks much like a class with the implementation ommited. An interface can contain only method specifications, called abstract methods, and named constant definitions. There are no constructors, no method bodies, and no instance variables. There is, in face, no trace of an implementation. You do not “instantiate” an interface. As we shall see, an interface defines an abstract view of a group of classes. It is to specify the minimal functionality that a client requires of a server.

Like a class, an interface is a member of a package. Also like a class, an interface can be public or “package private”. If the interface definition does not begin with the keyword, public, it is package private, that is, available onlu within the package in which it is defined. (We should also note that a package cannot contain both a class and an interface with the same name. The package nim, for example, could not contain both a class and an interface named Player.)

class TimidPlayer implements Player {…}

Method specification in which the method body is replaced by a semicolon are called abstract methods. The keyword can be used in these definitions. Thus, we could have written

public abstract String name();

All method specifications included in aan interface are public and abstract. Hence, the language does not require these keywords when specifying a method in an interface. We could, for example, write the specification of the method name in any of the following equivalent ways:

public abstract String name();

public String name();

abstract String name();

String name();

about “public” August 3, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

A method not declared public is only available to clients defined in the same package.

很棒的挑戰與鼓勵_from mom July 26, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

熱情 智慧 堅持 是求學做事的絕妙因素

Swedish today July 25, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

det är varmt hos dig

at my place = hemma hos mig
Det är svalt hemma hos mig.

en frys -> frysen -> den är sval

min frys (freezer) är sval. den är sval

“kylskåp” (fridge) => ett kylskåp, det kylskåpet => “mitt kylskåp är svalt”

but when you are talking about weather or feelings (abstract nouns) and want to describe them with an adjective, you use “det”

Dom är alltid tillsammans

most common in the expression “hemma hos”

Jag är glad över att lära mig något nytt på svenska med din hjälp

han mådde bra (mådde = felt)

Javier var också med

“var är du?”
“jag är hemma hos Crystal”
“var är du?”
“jag är hos Crystal”

gå hem till Kristina = go to Kristina’s place
gå till Kristina = go to Kristina

All the work in last year have been done July 16, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

I have gotten my bachelor diploma yesterday and officially left NCTU. Besides, all the grades in Chalmers have been sent to LADOK today. New stage starts!!!

The goal for using this new blog July 14, 2008

Posted by crystalchangdin in Uncategorized.
add a comment

Mom will help me receive my diploma of bachelor degree from National Chiao Tung University in Taiwan and complete the procedure for leaving school tomorrow. Because I will not hand in my diploma to the CS graduated school in NCTU, it means I give up the opportunity by myself to study in Taiwan. So to get my next diploma of Software Engineering from Chalmers in one year will be the only way to go. I cannot look back or regret for my decision. But don’t be afraid. God will be with me as always. What I need to do is try my best, walk with Him and put my hope in Him.

I will use this new blog to write down everything I learned and whatever I am thinking about in English. Especially the knowledge and techniques in IT fields.

To be a good software engineer who has excellent English skills and can understand Swedish in daily dialog is my goal. Time will fly away, so I need to use it wisely.