Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2003, 06:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default using parent contructors in inherrited classes

How!?

What is the syntax for using the constructors of parent classes in child classes!? I am doing my own Exception class which is inherrited from Exception, however I do not know how to use Exception(string message) contructor of that class in my own. I have something like this...
Code:
    public class ExceptionSubmit : Exception
    {
        public ExceptionSubmit(string message)
        {

        }
    }
... however something is missing! What?

Thanks

Jacob.

__________________
Danish audio books for download at http://www.lytenbog.dk (Danske lydbøger til download).
 
Old August 23rd, 2003, 06:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry! I figured it out shortly after posting the topic. So for others with the same question (if any ;))..

Code:
    public class ExceptionSubmit : Exception
    {
        public ExceptionSubmit(string message) : base(message)
        {

        }
    }
Thanks

Jacob.






Similar Threads
Thread Thread Starter Forum Replies Last Post
parent/ancestor nmnm XSLT 1 April 24th, 2007 05:25 AM
getting the parent gantait XSLT 7 March 3rd, 2007 10:25 AM
Classes digby_dog VB.NET 2002/2003 Basics 1 May 2nd, 2005 09:12 PM
parent::* debo_sbg XSLT 5 April 1st, 2005 02:45 PM
Classes CodeMonkeys C# 3 August 18th, 2004 11:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.