2. Translate the following Java code into C#. Follow the C# rules regarding exact naming conventions and keywords as much as possible.
class Record {
public String toString()
{
String result = “abc”;
return result;
}
}
class NewRecord extends Record {
public String toString()
{
String result = “def”;
String oldresult = super.toString();
return result+oldresult;
}
}
using System;
class Record {
public String ToString(){
String result = "abc";
return result;
}
}
class NewRecord : Record {
public String toString(){
String result = "def";
String oldresult = super.toString();
return result+oldresult;
}
}
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME
Get Answers For Free
Most questions answered within 1 hours.