CrazyEngineers
  • i know that abstract classes cannot be instantiated but we say that then we create the sub-class object then first that will run the parent class constructor which is our abstract class ,so obviously when constructor will run,it will create an object ,so is there no conflict now on the basis of instantiation of the abstract class.
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Gollapinni Karthik Sharma

    MemberSep 2, 2014

    What is the question or your doubt here?
    Are you sure? This action cannot be undone.
    Cancel
  • radha gogia

    MemberSep 2, 2014

    Gollapinni Karthik Sharma
    What is the question or your doubt here?
    i have a doubt that if during instantiation of the child class ,firstly the constructor of the parent class which in our case is abstract class would run,so it means that when the constructor runs then it creates the object of the class so doesnt this fact conflict from the statement that abstract classes could not be instantiated becoz when its construcutor is called,it means its object must have been created definitely.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register