For example: On an email, An embedded image shows a preview of the image without you having to click on the image. An attached imaged is a file that does not have a preview on an email.
Programming languages have functions because, they are the set of operations that may be applied to objects of that particular class. for an example I will attach a function, you just check it