a person who has been writing Cobol programs for the last 30 years? I don't understand the basic concept.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
a person who has been writing Cobol programs for the last 30 years? I don't understand the basic concept.
Have you tried reading this?
Yes I have but it's just not sinking in. Thanks anyway.
Think about it from a language standpoint: noun/adjective/verb - noun is a class, adjective is a property, and verb is a method/interface. Take the following sentence:
"The red car drives fast"
Car ~ class
Red ~ a property (probably a variable associated with the class eg instance variable)
Drives fast ~ a method (defined in the class, or abstractly designed via an abstract method (abstract class, interface)). Fast could as well be a property
These rules are not set in stone, but may provide a descent general guideline when thinking in an OOP manner.