Coder Social home page Coder Social logo

Comments (12)

CodeEagle avatar CodeEagle commented on August 23, 2024

final is marked can not be subclassing, is that right?

from gloss.

ishaq avatar ishaq commented on August 23, 2024

yes.

from gloss.

CodeEagle avatar CodeEagle commented on August 23, 2024

ProductDetail subclassing Product ?

from gloss.

ishaq avatar ishaq commented on August 23, 2024

no. because Product is final

from gloss.

CodeEagle avatar CodeEagle commented on August 23, 2024

Could you paste your code here?

from gloss.

ishaq avatar ishaq commented on August 23, 2024

@CodeEagle what are you getting at if I may ask?

from gloss.

CodeEagle avatar CodeEagle commented on August 23, 2024

not that clear, sorry buddy, thus I wanna take a look at it for sure

if you want to reuse you code, abstract one base Class for Product and ProductDetail

from gloss.

ishaq avatar ishaq commented on August 23, 2024
  1. Write a class that implements any of Gloss protocols (these are Glossy, Decodable and Encodable).
  2. The compiler will tell you that you need to mark the class final.

Does it help?

from gloss.

CodeEagle avatar CodeEagle commented on August 23, 2024

got it

from gloss.

hkellaway avatar hkellaway commented on August 23, 2024

sorry guys, haven't figure this one out quite yet.

from gloss.

bachino90 avatar bachino90 commented on August 23, 2024

This is my solution to this issue: #103

from gloss.

hkellaway avatar hkellaway commented on August 23, 2024

will be addressed with 0.7.0 - thanks @bachino90!

from gloss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.