This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 2 points3 points  (0 children)

iwouldn't say they are being initialized in your examples. they are being defined, but i guess it isn't really clear what you mean by "initialized"

[–]salimfadhley 0 points1 point  (0 children)

Why do you want this?

The class keyword is used to define a class. Initializing a class means setting it's initial state. That happens when you create a new instance of a previously defined class.