Pattern matching and case classes
Upcoming SlideShare
Loading in...5
×
 

Pattern matching and case classes

on

  • 127 views

 

Statistics

Views

Total Views
127
Views on SlideShare
127
Embed Views
0

Actions

Likes
1
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Pattern matching and case classes Pattern matching and case classes Presentation Transcript

    • Functional Group Case class and Pattern Matcher
    • How work the case classes?
    • • Parameters list of case class are added as members automatically
    • • Automatically add methods for equals, hashCode and to String
    • • All attributes are passed by constructor method have public acesss
    • Pattern Matcher
    • Scala - Match
    • Match – Undefined type
    • What is the “_”?
    • Matching on type
    • Case class + Pattern Matching
    • Function without Pattern Matching
    • With Pattern Matching
    • Thanks!!