Or in other words
Class.DoesFunction(“arg1”,”arg2”).This…
Where the .ThisIdontKnowHow is where i don't know how to continueHow to use class after class while the first class method has arguments in vb.net?
A function returns something, an object, lets say.
This object is of a given type.
So you can use all methods exposed by that object in the way you want.
So if you have a function getBook(';name of book';) which returns a book object from... the library ;-) ... and a book object has a function getIndex() which returns the index of a book then you can say for example:
myLibrary.getBook(';RobinHood';).getInde…
if the index object provides a method to get the first chapter of the book you could use that too:
myLibrary.getBook(';RobinHood';).getInde…
which then gives you a chapter object.
you then can call all functions of this chapter object...
and so on.
Hope this is clear?
No comments:
Post a Comment