Differentiation between Like and Type

Write down the differentiation between Like and Type.

E

Expert

Verified

  • TYPE:  In which we can assign data type directly to the data object while declaring.
  • LIKE: In which we can assign the data type of another object to declaring data object. The data type is referenced not directly.
  • Type is a keyword is used to refer data type whereas
  • Like is the keyword which is used to copy the existing properties of an already existing data object.
  • Type refers existing data type
  • Like refers existing data object

   Related Questions in Basic Computer Science

©TutorsGlobe All rights reserved 2022-2023.