( 0-5 years ) Bsnl, Infosys, Tcs, IBM, HP are Hiring - Apply Here

SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




what is the difference b/w import,extend

        

Reply
 
LinkBack Thread Tools Display Modes
Old 23-03-07, 11:30 AM   #1 (permalink)
Junior Member
 
Join Date: Feb 2007
Age: 30
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 4 golikrishna is on a distinguished road
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

golikrishna is offline Offline   Reply With Quote
Old 23-03-07, 11:54 AM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 637
Thanks: 57
Thanked 91 Times in 70 Posts
Rep Power: 20 t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of
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
t_mohan is offline Offline   Reply With Quote
Old 23-03-07, 04:20 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 28
Posts: 103
Thanks: 0
Thanked 7 Times in 5 Posts
Rep Power: 6 PrashanthU is on a distinguished road PrashanthU is on a distinguished road
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
PrashanthU is offline Offline   Reply With Quote
Reply

Tags
b or w , difference , extend , import


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +6.5. The time now is 08:26 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2