64 720
Assignments Done
99,4%
Successfully Done
In September 2018

Answer to Question #14291 in C# for suresh hooli

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's answer
All these classes ClassB ClassC are inherited from Class. And when we call all
method they show same information.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions