Answers for "object and class"

0

object of a class

obj instanceof MyClass
Posted by: Guest on March-08-2021
0

Classes and Objects

class Car 
{
  string color = "red";
  int maxSpeed = 200;

  static void Main(string[] args)
  {
    Car myObj = new Car();
    Console.WriteLine(myObj.color);
    Console.WriteLine(myObj.maxSpeed);
  }
}
Posted by: Guest on October-17-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language