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("**************************************************************
1
Expert's answer
2012-09-07T10:37:59-0400
All these classes ClassB ClassC are inherited from Class. And when we call all method they show same information.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment