Question
Are constructors inherited? Can a subclass call the parent's class constructor? When

Answers

You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's superclasses. One of the main reasons is because you probably don't want to overide the superclasses constructor, which would be possible if they were inherited. By giving the developer the ability to override a superclasses constructor you would erode the encapsulation abilities of the language.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Which kind of bulbs were once exchanged as a form of currency?
  • Q I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
  • Q The venue of 2012 Summer Paralympics:
  • Q What is a trophozoite?
  • Q How can u define the benefits and limitation of using View state for state management?
  • Q Examine Quine’s criticism on logical positivism
  • Q What does Samantha Cameron have tattooed on her ankle: the Conservative Party tree emblem; a Union Jack; a skull and cross-bones; or a dolphin?
  • Q Why is partitioning and formatting a prerequisite to installing an operating system?
  • Q Where's php?
  • Q Discuss nature of Self instruction in Atmopadessatakam.
  • Q What's new in sql management studio for sql server?