[talk] Statics In Object Oriented Programming

Sujit K M kmsujit at gmail.com
Sun Jul 15 22:14:06 EDT 2018


On Mon, Jul 16, 2018, 7:26 AM Peter Varga <pvarga at pvrg.net> wrote:

>
>
>
> On Sun, Jul 15, 2018, at 14:15, Sujit K M wrote:
> > I might heavily on Java. But don't understand what a field in Object is
> > present in sub class why does it create two variables(one in sub class
> and
> > other in parent class). How about changing them to static would it give a
> > compiler. I am more interested in Python and C++. How does memory
> > management work in these languages.
> >
> >
>
> This question is pretty good, yet needs more details, work to be complete.
> So let me attempt a start.
> Mostly: Python has a runtime, Java runs in a VM, C++ is compiles.
>
> So can (c++|python|java) be compiled or run in a VM or have a runtime?
>
> This is CompSci with enough thinking, engineering, and (necessary,bloat)
> code a lot can be done.
>
> My advice is just to start with one of these to investigate the “static in
> object oriented languages” and let the language definition be observed.
>
>
I am referring in c++ terms a smart pointer. I don't think we need a VM or
runtime to do the same.

> _______________________________________________
> > talk mailing list
> > talk at lists.nycbug.org
> > http://lists.nycbug.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/talk/attachments/20180716/537f0663/attachment.html>


More information about the talk mailing list