Julia is a fully OOP language, but a different type of OOP than you may be
used to if you are used to C++, Java or Python. Julia doesn't have classes.
Instead, it has types and multiple dispatch. Types can inherit from other
types, and functions can do different things depending on the type. For
example:
type Animal
...
end
type Mammal <: Animal
...
end
type Dog <: Mammal
...
end
function jump(a:::Animal)
# Also defined for sub-types of Animal.
...
end
function jump(a:::Dog)
# Redefine for dogs.
...
end
fido = Dog("fido")
jump(fido)
Cheers,
Daniel.
On Monday, 23 December 2013 06:58:18 UTC-5, sina kashi pazha wrote:
>
> hello
>
> I'm new user and I want to know Julia provide object oriented programming?
> forgive me because of this stupid question.
>
>