Current Events > Any computer science professionals want to help me for an interview?

Topic List
Page List: 1
Milkman5
08/28/18 6:15:46 AM
#1:


how would you guys define Polymorphism, Inheritance, and Objects in an interview?
Like in a sentence or two.

And how do you explain the differences between two languages coherently.

Let's say they asked me to explain the difference between Javascript and Java.

I have written extensive projects in both, but I literally have no idea to actually explain the fundamental differences.

Javascript runs from a browser? I mean that's not even true, you can compile Javascript without a browser.

Java is "object oriented" and Javascript is a "scripting language"

but Javascript has objects and you can write a script in Java.

Other than the syntax, how the fuck am I supposed to explain differences?
... Copied to Clipboard!
Milkman5
08/28/18 6:22:47 AM
#2:


How is this

"Inheritance is the ability for one class to be able to use methods and properties from another class"

Then I can show them an example on the white board, like class A extends or Class B some shit and show Class A inherited a method from Class B.

Then how do I explain an object? Like a data structure that has individual properties? I have no idea how to explain what an object is.
... Copied to Clipboard!
scar the 1
08/28/18 6:24:30 AM
#3:


As for the concepts, I would stick to formal definitions as much as possible.
About the differences between languages, you can start with fundamental things like is it compiled, interpreted, native, etc? Dynamically typed, statically? Etc.
---
Everything has an end, except for the sausage. It has two.
... Copied to Clipboard!
Milkman5
08/28/18 6:27:49 AM
#4:


scar the 1 posted...
As for the concepts, I would stick to formal definitions as much as possible.
About the differences between languages, you can start with fundamental things like is it compiled, interpreted, native, etc? Dynamically typed, statically? Etc.


Ok. Thanks.
That's actually helpful
... Copied to Clipboard!
scar the 1
08/28/18 6:30:52 AM
#5:


IIRC, within OOD there are hierarchies of relations between objects. Like composition, aggregation, etc, up until generalization. Inheritance is generalization, and a very strong relation. Maybe explain it from this perspective? Idk it really depends on what kind of skills they wanna test.
---
Everything has an end, except for the sausage. It has two.
... Copied to Clipboard!
Topic List
Page List: 1