![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Feb 2007 Age: 30
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 4 | what is the difference b/w import,extend hi , Friends any one tell me what is the difference b/w import and extend,plz give details |
| | |
| | #2 (permalink) |
| Moderator Join Date: Apr 2006 Location: India
Posts: 637
Thanks: 57
Thanked 91 Times in 70 Posts
Rep Power: 20 | Re: what is the difference b/w import,extend If you want to use some of the predefined classes of the API in your class and extend the capabilities of the same class then you have to use import. With out importing a package/class you cannot extend/inherit the properties/methods of a class. I hope i'am clear in a single line Let me know your questions Thank You |
| | |
| | #3 (permalink) |
| Senior Member Join Date: Jan 2007 Age: 28
Posts: 103
Thanks: 0
Thanked 7 Times in 5 Posts
Rep Power: 6 | Re: what is the difference b/w import,extend golikrishna... Import and Extend are two different concepts... IMPORT : with this keyword you specify the API's( that include classes) that are going to be used by the code ...a way of informing the compiler to look out for specific classes within the imported API's.... EXTEND : we usually use this keyword when we want to extend the functionality of an existing class... Thanks, Prashanth |
| | |
![]() |
| Tags |
| b or w , difference , extend , import |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need .Net Interview Questions | vidyasagarkumar | VB / ASP.NET Technologies | 6 | 06-09-07 12:37 AM |
| difference between a Debug and Release build? | LALIT KUMAR | VB / ASP.NET Technologies | 3 | 20-02-07 05:48 PM |
| TCS Pacement paper 30 | sridhar | TCS Placement Papers | 0 | 12-02-07 05:45 PM |
| TCS Pacement paper 29 | sridhar | TCS Placement Papers | 0 | 12-02-07 05:43 PM |
| J2EE - What is the difference between Difference between doGet() and doPost()? | preethisingh | Java Interview / Technical Questions | 1 | 24-01-07 07:28 PM |
| More Interview Questions Here... |