{"id":104,"date":"2026-06-02T11:57:36","date_gmt":"2026-06-02T11:57:36","guid":{"rendered":"https:\/\/gigz.pk\/javaapp\/?post_type=lesson&#038;p=104"},"modified":"2026-06-06T06:09:45","modified_gmt":"2026-06-06T06:09:45","slug":"classes-and-objects","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/javaapp\/?lesson=classes-and-objects","title":{"rendered":"Classes and Objects"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Classes and objects are the foundation of Object-Oriented Programming (OOP) in Java. They help developers organize code, represent real-world entities, and build scalable applications. Understanding classes and objects is essential for creating professional Java applications, Android apps, desktop software, and enterprise systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Java is an object-oriented programming language, which means programs are built using classes and objects. These concepts allow developers to create reusable, maintainable, and efficient code while modeling real-world scenarios.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Classes in Java?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A class is a blueprint or template used to create objects. It defines the properties and behaviors that objects of that class will have.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A class can contain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Variables (attributes)<\/li>\n\n\n\n<li>Methods (functions)<\/li>\n\n\n\n<li>Constructors<\/li>\n\n\n\n<li>Nested classes<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a class as a design for a house. The design describes what the house will look like, but the actual house is created later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax of a Class<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n    int age;\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, Student is a class that contains two attributes: name and age.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Objects in Java?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An object is an instance of a class. Objects are created from a class and contain actual values for the attributes defined in that class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While a class is a blueprint, an object is the real entity created from that blueprint.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Class \u2192 Car<\/li>\n\n\n\n<li>Object \u2192 Toyota Corolla<\/li>\n\n\n\n<li>Class \u2192 Student<\/li>\n\n\n\n<li>Object \u2192 Ahmed<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Each object can store different data while sharing the same structure defined by the class.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating an Object<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Objects are created using the new keyword.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Student is the class name<\/li>\n\n\n\n<li>student1 is the object name<\/li>\n\n\n\n<li>new Student() creates a new object<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The object now occupies memory and can store data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Accessing Object Properties<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The dot operator (.) is used to access object attributes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n\nstudent1.name = \"Ali\";\nstudent1.age = 20;\n\nSystem.out.println(student1.name);\nSystem.out.println(student1.age);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ali\n20\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The object stores and displays its own data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Complete Example of Class and Object<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n    int age;\n\n}\n\npublic class Main {\n\n    public static void main(String&#91;] args) {\n\n        Student student1 = new Student();\n\n        student1.name = \"Ahmed\";\n        student1.age = 22;\n\n        System.out.println(student1.name);\n        System.out.println(student1.age);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ahmed\n22\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example demonstrates how a class is used to create an object and store information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use Classes and Objects?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classes and objects help organize code and represent real-world entities effectively.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Benefits include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Improved code organization<\/li>\n\n\n\n<li>Better code reusability<\/li>\n\n\n\n<li>Easier maintenance<\/li>\n\n\n\n<li>Enhanced scalability<\/li>\n\n\n\n<li>Support for Object-Oriented Programming<\/li>\n\n\n\n<li>Simplified problem-solving<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">They are essential for building modern software applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Multiple Objects from One Class<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A single class can create multiple objects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n\n}\n\npublic class Main {\n\n    public static void main(String&#91;] args) {\n\n        Student student1 = new Student();\n        Student student2 = new Student();\n\n        student1.name = \"Ali\";\n        student2.name = \"Sara\";\n\n        System.out.println(student1.name);\n        System.out.println(student2.name);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ali\nSara\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Each object stores its own unique data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods in a Class<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classes can contain methods that define behaviors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n\n    void display() {\n\n        System.out.println(\"Student Name: \" + name);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Methods allow objects to perform actions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Calling Object Methods<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n\nstudent1.name = \"Ahmed\";\n\nstudent1.display();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student Name: Ahmed\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The object calls the method using the dot operator.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a car management system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Car {\n\n    String brand;\n    int year;\n\n    void displayInfo() {\n\n        System.out.println(brand + \" \" + year);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Creating objects:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Car car1 = new Car();\n\ncar1.brand = \"Toyota\";\ncar1.year = 2024;\n\ncar1.displayInfo();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Toyota 2024\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This demonstrates how classes and objects model real-world entities.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Memory Allocation for Objects<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When an object is created:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Java allocates memory for the object in the heap memory area.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The object reference variable stores the address of the created object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This memory management process is handled automatically by Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Class Members<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A class can contain different types of members.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Variables<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Store data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String name;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Methods<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Define actions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void display() {\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Constructors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Initialize objects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student() {\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Nested Classes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Classes defined inside other classes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These members help organize program functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Difference Between Class and Object<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Class<\/th><th>Object<\/th><\/tr><\/thead><tbody><tr><td>Blueprint or template<\/td><td>Instance of a class<\/td><\/tr><tr><td>Logical entity<\/td><td>Physical entity<\/td><\/tr><tr><td>Does not occupy memory directly<\/td><td>Occupies memory when created<\/td><\/tr><tr><td>Defines properties and methods<\/td><td>Contains actual data<\/td><\/tr><tr><td>Created once<\/td><td>Can create multiple objects<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding this difference is crucial for mastering Java programming.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Applications of Classes and Objects<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classes and objects are used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Android applications<\/li>\n\n\n\n<li>Banking systems<\/li>\n\n\n\n<li>E-commerce platforms<\/li>\n\n\n\n<li>Hospital management systems<\/li>\n\n\n\n<li>Student management software<\/li>\n\n\n\n<li>Inventory applications<\/li>\n\n\n\n<li>Enterprise solutions<\/li>\n\n\n\n<li>Game development<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Almost every Java application relies heavily on classes and objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Beginner Mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Forgetting to Create an Object<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student.name = \"Ali\";\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation is required before accessing non-static members.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Incorrect Object Reference<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This only declares a reference and does not create an object.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Accessing Uninitialized Values<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using variables before assigning values can produce unexpected results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Confusing Class and Object<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Many beginners mistakenly think classes and objects are the same.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Class = Blueprint<\/li>\n\n\n\n<li>Object = Real instance<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When working with classes and objects:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use meaningful class names<\/li>\n\n\n\n<li>Follow Java naming conventions<\/li>\n\n\n\n<li>Keep classes focused on one responsibility<\/li>\n\n\n\n<li>Use methods to organize functionality<\/li>\n\n\n\n<li>Create reusable class structures<\/li>\n\n\n\n<li>Avoid unnecessary object creation<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These practices improve code quality and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importance of Classes and Objects<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classes and objects form the backbone of Object-Oriented Programming. They allow developers to model real-world entities, organize complex systems, and create reusable software components.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding these concepts prepares developers for advanced topics such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Constructors<\/li>\n\n\n\n<li>Inheritance<\/li>\n\n\n\n<li>Polymorphism<\/li>\n\n\n\n<li>Encapsulation<\/li>\n\n\n\n<li>Abstraction<\/li>\n\n\n\n<li>Interfaces<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">They are essential building blocks for professional Java development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Classes and objects are the core concepts of Java Object-Oriented Programming. A class serves as a blueprint, while an object is an actual instance created from that blueprint. Together, they help developers build organized, reusable, and scalable applications. Mastering classes and objects is a crucial step toward becoming a skilled Java developer and creating professional software solutions.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/javaapp\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Intermediate Java > Object-Oriented Programming > Classes and Objects<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><\/div>\n","protected":false},"menu_order":25,"template":"","class_list":["post-104","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Classes and Objects - Learn Java used for Apps with GiGz.PK<\/title>\n<meta name=\"description\" content=\"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Classes and Objects - Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"og:description\" content=\"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-06T06:09:45+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?lesson=classes-and-objects\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Classes and Objects - Learn Java used for Apps with GiGz.PK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\"},\"datePublished\":\"2026-06-02T11:57:36+00:00\",\"dateModified\":\"2026-06-06T06:09:45+00:00\",\"description\":\"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/javaapp\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Intermediate Java > Object-Oriented Programming > Classes and Objects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/\",\"name\":\"Learn Java used for Apps with GiGz.PK\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Classes and Objects - Learn Java used for Apps with GiGz.PK","description":"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Classes and Objects - Learn Java used for Apps with GiGz.PK","og_description":"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Learn Java used for Apps with GiGz.PK","article_modified_time":"2026-06-06T06:09:45+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/javaapp\/?lesson=classes-and-objects","url":"https:\/\/gigz.pk\/","name":"Classes and Objects - Learn Java used for Apps with GiGz.PK","isPartOf":{"@id":"https:\/\/gigz.pk\/javaapp\/#website"},"datePublished":"2026-06-02T11:57:36+00:00","dateModified":"2026-06-06T06:09:45+00:00","description":"Learn Java classes and objects \u2014 how to create, access, and use them with real-world examples and OOP concepts explained simply.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/javaapp"},{"@type":"ListItem","position":2,"name":"Intermediate Java > Object-Oriented Programming > Classes and Objects"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/javaapp\/#website","url":"https:\/\/gigz.pk\/javaapp\/","name":"Learn Java used for Apps with GiGz.PK","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/javaapp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}