what is object orientated programming code example
Example 1: object oriented programming languages
Object oriented programming languages include:
Java
JavaScript
Python
C++
Visual Basic .NET
Ruby
Scala
PHP
These are just the main ones, there's much more out there.
Example 2: object-oriented programming
class Person {
void walk() {
System.out.println(“Can Run….”);
}
}
class Employee extends Person {
void walk() {
System.out.println(“Running Fast…”);
}
public static void main(String arg[]) {
Person p = new Employee();
p.walk();
}
}