+ 1

Pls who can explain this topic in a more detailed format?

13th Jan 2018, 6:05 AM
Chibuzo Emmanuel
Chibuzo Emmanuel - avatar
2 Answers
+ 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.
13th Jan 2018, 1:08 PM
Roberto Guisarre
Roberto Guisarre - avatar
- 1
What language are you taking this from?
13th Jan 2018, 11:44 AM
Robyn A
Robyn A - avatar