Results 1 to 3 of 3

Thread: Create Object

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    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.


  2. #2
    Junior Member
    Join Date
    Nov 2006
    Answers
    2

    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


  3. #3
    Junior Member
    Join Date
    Nov 2006
    Answers
    2

    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 ....


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact