What is the difference between a property a method and an
event? Give an example of each.
Answer Posted / manish mehta
Object has three characteristics
and these are
1.Property
2.Method
3.Event
Property represents (data) characteristic of an object..
Method represents the behavior(action)performed by an object..
Event is msg sent by an object to signal an activity
Example:-
For a class Employee
FirstName,LastName,Salary <------ Properties
Hire,Promote <------ Methods
On hire, On promote <------ Events
| Is This Answer Correct ? | 24 Yes | 6 No |
Post New Answer View All Answers
What is Mask Edit and why it is used?
Can you create a tabletype of recordset in Jet connected ODBC dbengine.
What is the use of Hyperlink control for DHTML applications?
What is Seek Method which type of record set is available this?
How would you navigate between one document to another document
Why API functions are Required?
Which method is used to write context Into file?
VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?
How would you map properties to controls by using ActiveX Control Interface Wizard?
How would you add elements in TreevieW Control?
What are the types of line styles available in Treeview Control?
What is the use of parameters collection?
How can you filter out specific type of file using file system controls?
How about Access 2.0 compatibility?
DHTML Is used for what?