Question: Cache Class Definition

How to I add a data in properties and what are the relationship with properties and methods . How to use a properties in method and properties to add a data or object.

Answers

I'm not sure exactly what you're asking here;  if there are more specific questions, please let us know.

ditto!

What is being asked here?

Perhaps you could start by defining for yourself:

What are properties?

What are methods?

What are objects?

before you start asking about relaltionships.

There is some good basic information available in the documentation, start there.

There is also some good online learning available, see the tag on online learning.

Then there are the NewBie posts.