hi guys what constructors should i use for this program?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BACKUPEXEFILES
{
    public class cCOPY
    {
        private string _directorypath;
        private string _filename;

        public string directorypath
        {
            get { return _directorypath; }
            set { _directorypath = value; }
        }

        public string filename
        {
            get { return _filename; }
            set { _filename = value; }
        }           
    }
}

A default constructor is never a bad idea.
A default constructor never takes argument and could be used to set some field of your class to a default value.
So you could include in your class, for example something like this:

public cCOPY()
{
    _directorypath = "MyDefaultDirPathName";
    // etc. for other fields
}

Hope this helps a bit.

Constructor that should be selected can't guess using class itself. Choosing of the Constructor vary from the your need.So select it as appropriate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.