Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Create Object

This is a discussion on Create Object within the Java forums, part of the Software Development category; Why unable to create object for abstract class and interfaces? Note : This is the question asked by a visitor bhnau priya. I am posting this in proper forum....

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2006
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 Posts
JobHelper is on a distinguished road
Create Object

Why unable to create object for abstract class and interfaces?

Note : This is the question asked by a visitor bhnau priya. I am posting this in proper forum.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-29-2006
Junior Member
 
Join Date: Nov 2006
Location: bangalore,india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
harikishanbk is on a distinguished road
Re: Create Object

Unlike classes or objects, abstracts and interfaces are not something that exists in objective reality. They are only "scaffolding" needed to support c++/java static typing system. there's no need of them
Reply With Quote
  #3 (permalink)  
Old 11-30-2006
Junior Member
 
Join Date: Nov 2006
Location: Hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
andhraprince is on a distinguished road
Re: Create Object

Quote:
Originally Posted by JobHelper View Post
Why unable to create object for abstract class and interfaces?

Note : This is the question asked by a visitor bhnau priya. I am posting this in proper forum.
Interface do not have any body ... it s has only variable declaration and method declartion ... we dont initialize them ... we have to put the code related to those variable and methods ... in the class which implements that interface ... so dont create an object of an Interface ...we just give an object type of that interface ...
If it comes to abstract class they do not have nay body similar to interfaces
to ... so we need not instantiate those abstarct class ....
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Object Spy suji QTP 3 06-19-2009 10:05 AM
Query with relation to member function and object in Class fred C and C++ 5 12-20-2006 04:23 AM
create new entity in crm 3.0 SIVAM_SOLAI Microsoft CRM 0 10-06-2006 01:35 AM
Object Properties of Rational Robot bhushanqwer Rational Robot 1 09-24-2006 05:31 AM
How do you Implement Class Library Object GeekAdmin VB.NET 0 05-28-2006 11:14 AM


All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved