Inherit Parent Constructor Behaviour

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Xarky (bernardpace_at_yahoo.com)
Date: 11/17/04


Date: 17 Nov 2004 08:35:46 -0800

Hi,
  Having the following scenario:

public class Parent
{
   private string Parent_name;

   public Parent()
   {
       this.Parent_name = "";
   }
}

public class Child : Parent
{
    public Child()
    {
        // I need to inherit the behaviour of the parent constructor
        // and
        // and new behaiour
    }
}

Can someone help me out.

Thanks in Advance



Relevant Pages

  • Re: Simple question for those who understand recursion well. Please help.
    ... > identify your recursion termination condition. ... public class TreeWalker ... private String parent_ = null; ... public Node(String name,String parent) ...
    (comp.lang.java.programmer)
  • C#/2.0: Tricky issue with generics.
    ... public class NodeList: ... NodeList can take a Node that is the parent. ... the case should be totally valid in my optinion. ...
    (microsoft.public.dotnet.languages.csharp)
  • Hibernate InheritanceType.JOINED trouble
    ... public class Parent implements Serializable { ... private String name; ... Saving, retrieve, updating of Parent class objects is perfect. ...
    (comp.lang.java.help)
  • Re: Inherit Parent Constructor Behaviour
    ... > public class Parent ... > public class Child: Parent ... The parameterless Parent constructor will be ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Threading Faux Pa
    ... the Parent class data from the database and loads all the objects. ... a TCPClient that is wrapped in a 'communicator' class. ... public class ObjectModelController ... private void LoadObjectModel() ...
    (microsoft.public.dotnet.languages.csharp)