+ 1
Pls who can explain this topic in a more detailed format?
2 Antworten
+ 1
In the Object Oriented Programming structured language Methods are the behavior provided to a Class, and an Object is an instantiation of a Class on a reference variable, which after the instantiation it can access that class's methods.
Say there's a Class "Test" with a method "DBTest" with userName and Pwd strings parameters (to test a database connection), then in another class that imports "Test" you want to access "DBTest", that's where the Object is good for. (Test myTest = new Test; and then myTest.DBTest (user, pwd);.
Good luck.
- 1
What language are you taking this from?