|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CourseLibrary;
namespace MultipleSingleFactory
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Customer : I am looking for course");
Console.WriteLine("Programmer24X7 Executive:Which kind of course you are looking for sir, .net(N) or Java(J)?");
Console.Write("Customer:");
string StrUserInput = Console.ReadLine();
Console.WriteLine("\n");
AbstractCourse objCourse = OnlineCourseFactory.CreateCourse(StrUserInput);
Console.WriteLine("Programmer24X7 Executive:Course " + objCourse.CourseName + " Created , Duration will be " + objCourse.CourseDuration.ToString());
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.