Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bogart Fischer   on Jul 07 In Java Category.

  
Question Answered By: Leon Evans   on Jul 07

You are wrong. Your test object  does have a state,
as any new class, by default, extends
java.lang.Object. If you want to ry it, just call the
a.toString() method and print out the results. As you
create multiple test  objects they will all have
different states.

On the other note, even if your Test object had no
member variables (fields), it would have an empty
state which is also a state, similar to the way an
empty set is a set in math.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java is not OOP is now proved Or get search suggestion and latest updates.


Tagged: