[Solved] : Question 14291

hi all i have question ..
what is the differance between

classA a=new ClassA(); , ClassA b=new ClassB(); and ClassB c=new ClassC();
as show in bellow code.

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

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ClassA a = new ClassA();
a.MethodeA();
a.MethodeAB();
Console.WriteLine(“***************************************************************”);
ClassA b = new ClassB();
b.MethodeA();
b.MethodeAB();
b.MethodeABCBase();

ClassB objb= new ClassB();
a = (ClassA)objb;
a.MethodeAB();
Console.WriteLine(“***************************************************************”);
ClassA c=new ClassC();
c.MethodeA();
Console.WriteLine(“**************************************************************


Expert Answer


Answer to : Question 14291

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?